Re: Sample Trigger Code to get inserted value

2013-12-02 Thread J Ramesh Kumar
Finally I got it working... Below are the code snippet which will be useful for trigger users, public Collection augment(ByteBuffer key, ColumnFamily cf) { try { ByteBuffer id_bb = CompositeType.extractComponent(key, 0); UUID id=TimeUUIDType.instance.compose(id_bb)

Sample Trigger Code to get inserted value

2013-11-27 Thread J Ramesh Kumar
Hi, I need your help on extract column names and values in the trigger augment method. *Table Def :* create table dy_data ( id timeuuid, data_key text, time timestamp, data text, primary key((id,data_key),time)) with clustering order by (time desc); public class ArchiveTrigger implements ITrigg