Re: Get clustering column in Custom cassandra trigger

2016-05-26 Thread Tyler Hobbs
Try: unfilteredRowIterator.next().clustering().toString(update.metadata()) To get the raw values, you can use: unfilteredRowIterator.next().clustering().getRawValues() On Thu, May 26, 2016 at 7:25 AM, Siddharth Verma < verma.siddha...@snapdeal.com> wrote: > Hi Sam, > Sorry, I couldn't understa

Re: Get clustering column in Custom cassandra trigger

2016-05-26 Thread Siddharth Verma
Hi Sam, Sorry, I couldn't understand. I am already using UnfilteredRowIterator unfilteredRowIterator =partition.unfilteredIterator(); while(unfilteredRowIterator.hasNext()){ next.append(unfilteredRowIterator.next().toString()+"\001"); } Is there another way to access it?

Re: Get clustering column in Custom cassandra trigger

2016-05-26 Thread Sam Tunnicliffe
If you just want the string representations you can just use Unfiltered::clustering to get the Clustering instance for each Unfiltered, then call its toString(CFMetadata), passing update.metadata(). On Thu, May 26, 2016 at 12:01 PM, Siddharth Verma < verma.siddha...@snapdeal.com> wrote: > Tried

Re: Get clustering column in Custom cassandra trigger

2016-05-26 Thread Siddharth Verma
Tried the following as well. Still no result. update.metadata().clusteringColumns().toString() -> get clustering column names update.columns().toString() -> gets no primary key colulmns update.partitionKey().toString() -> gets token range Any help would be

Get clustering column in Custom cassandra trigger

2016-05-25 Thread Siddharth Verma
hi, I am creating a trigger in cassandra --- public class GenericAuditTrigger implements ITrigger { private static SimpleDateFormat dateFormatter = new SimpleDateFormat ("/MM