Re: How to programmatically index an existed column?

2011-05-26 Thread aaron morton
Please post to one list at a time. Otherwise people may spend their time helping you when someone already has. Cheers - Aaron Morton Freelance Cassandra Developer @aaronmorton http://www.thelastpickle.com On 26 May 2011, at 17:35, Dikang Gu wrote: I want to build a

Re: How to programmatically index an existed column?

2011-05-26 Thread Dikang Gu
Hi Aaron, Thank you for your reminder. I've found out the solution myself, and I share it here: KeyspaceDefinition keyspaceDefinition = cluster.describeKeyspace(KEYSPACE); ColumnFamilyDefinition cdf = keyspaceDefinition.getCfDefs().get(0); BasicColumnFamilyDefinition columnFamilyDefinition =