incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dong.yajun" <dongt...@gmail.com>
Subject Slice query on TimeUUID columns
Date Fri, 09 Nov 2012 01:53:24 GMT
Hi list,

I've a column family with TimeUUIDType comparator, and I use Hector and
have keyspace using RandomPartitioner.

I'd like to make slice query to get results ordered by TimeUUID.

Composite startRange = new Composite();
startRange.add(0,
UUIDGen.getUUID(ByteBuffer.wrap(UUIDGen.getTimeUUIDBytes(Long.MIN_VALUE))));

Composite endRange = new Composite();
endRange.add(0,
UUIDGen.getUUID(ByteBuffer.wrap(UUIDGen.getTimeUUIDBytes(Long.MAX_VALUE))));

I gets an error: InvalidRequestException(why:range finish must come after
start in the order of traversal)



and then, I just pass null as the end of the range,  I rerieve data with
incorrect, only one column.

Any ideas ?


-- 
Ric Dong

Mime
View raw message