cassandra/examples/triggers
Dave Brosius 93c99a65e7 switch external naming of 'column families' to 'tables'
patch by dbrosius reviewed by jbellis for cassandra-7369
2014-06-18 23:30:02 -04:00
..
conf switch external naming of 'column families' to 'tables' 2014-06-18 23:30:02 -04:00
src/org/apache/cassandra/triggers switch external naming of 'column families' to 'tables' 2014-06-18 23:30:02 -04:00
README.txt Fix trigger directory detection code 2013-08-03 11:21:07 -07:00
build.xml add the sample properties file to the example trigger jar so it can be loaded 2014-05-15 23:07:35 -04: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.