cassandra/examples/triggers
Vijay Parthasarathy 4f2fdc2e73 Fix trigger directory detection code
Patch by Vijay, reviewed by jebllis for CASSANDRA-5826
2013-08-03 11:21:07 -07:00
..
conf Add trigger examples 2013-07-11 21:36:30 -07:00
src/org/apache/cassandra/triggers cosmetic trigger corrections (examples) 2013-07-23 01:39:46 +03:00
README.txt Fix trigger directory detection code 2013-08-03 11:21:07 -07:00
build.xml Add trigger examples 2013-07-11 21:36:30 -07:00

README.txt

Cassandra Trigger's Example:
=========================

InvertedIndex class will create a inverted index of 
RowKey:ColumnName:Value to Value:ColumnName:RowKey

NOTE: This example is limited to append-only workloads, 
	  doesn't delete indexes on deletes. 

Installation:
============
change directory to <cassandra_src_dir>/examples/triggers
run "ant jar"
Copy build/trigger-example.jar to <cassandra_conf>/triggers/
Copy conf/* to <cassandra_home>/conf/
Create column family configured in InvertedIndex.properties 
    Example: Keyspace1.InvertedIndex as configured in InvertedIndex.properties
Configure trigger on the table.
    Example: CREATE TRIGGER test1 ON "Keyspace1"."Standard1"
                 USING 'org.apache.cassandra.triggers.InvertedIndex';
Start inserting data to the column family which has the triggers.