Re: range slice with TimeUUID column names

2011-11-13 Thread Mick Semb Wever
On Thu, 2011-11-10 at 22:35 -0800, footh wrote:
 
 UUID startId = new UUID(UUIDGen.createTime(start), 
 UUIDGen.getClockSeqAndNode());
 UUID finishId = new UUID(UUIDGen.createTime(finish), 
 UUIDGen.getClockSeqAndNode()); 

You have got comparator_type = TimeUUIDType ?

~mck


-- 
The old law about 'an eye for an eye' leaves everybody blind. Martin
Luther King. Jr. 

| http://semb.wever.org | http://sesat.no |
| http://tech.finn.no   | Java XSS Filter |


signature.asc
Description: This is a digitally signed message part


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.


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());