range slice with TimeUUID column names

2011-11-10 Thread footh
I am using Hector to do a range query for a column family that uses TimeUUIDs 
as column names.  However, I'm not sure how to create the "range".  I figured 
I'd create some UUIDs using the com.eaio.uuid library with timestamps for the 
range I was interested in.  When trying this, I don't get any results back even 
though I am sure there are UUIDs in the time range.  Is this the correct way to 
do this?  Here's how I'm creating my range UUIDs where 'start' and 'finish' are 
timestamps from java.util.Date:

UUID startId = new UUID(UUIDGen.createTime(start), 
UUIDGen.getClockSeqAndNode());
UUID finishId = new UUID(UUIDGen.createTime(finish), 
UUIDGen.getClockSeqAndNode());



Re: range slice with TimeUUID column names

2011-11-11 Thread footh
To make sure I had an all-encompassing date range, I tried this:

UUID startId = new UUID(UUIDGen.createTime(0L),
UUIDGen.getClockSeqAndNode()); 
UUID finishId = new UUID(UUIDGen.createTime(Long.MAX_VALUE),
UUIDGen.getClockSeqAndNode());

For the range slice parameters, and I am still not getting any results.

--
View this message in context: 
http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/range-slice-with-TimeUUID-column-names-tp6984467p6985963.html
Sent from the cassandra-u...@incubator.apache.org mailing list archive at 
Nabble.com.