cassandra/examples/triggers
Aleksey Yeschenko c6bed82702 Merge branch 'cassandra-2.0' into cassandra-2.1
Conflicts:
	CHANGES.txt
	examples/triggers/src/org/apache/cassandra/triggers/InvertedIndex.java
2014-05-13 17:51:34 +03:00
..
conf License and versions for 2.0.2 release 2013-10-22 18:01:51 +02:00
src/org/apache/cassandra/triggers Merge branch 'cassandra-2.0' into cassandra-2.1 2014-05-13 17:51:34 +03:00
README.txt Fix trigger directory detection code 2013-08-03 11:21:07 -07:00
build.xml License and versions for 2.0.2 release 2013-10-22 18:01:51 +02: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.