Re: Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Nate McCall
Your comparator is looking for the empty string as the first component. For what you are trying to do, you probably want the TimeUUID to be first so you can specify the range for the first positions, then "" and "|" (or similarly brute-ish ascii search hack which would include all the values of th

Re: Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Anthony Ikeda
It's okay, it seems that you need to enclose the comparator with single quotes. On another note, can ranges be set without based on just one components of a composite column name? I have a the Composite below in the previous email and want to return all my transaction columns for a particular

Creating comparator of (Dynamic)CompositeType with cassandra-cli

2011-07-18 Thread Anthony Ikeda
Is this possible? I'm trying to create a Column Family with a CompositeType comparator, but I keep getting an error: create column family Transactions with comparator = CompositeType(UTF8Type, UUIDType) and keys_cached=1 and rows_cached=1000; Syntax error at position 84: missing EOF at '(' Sa