incubator-cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Santal Li <santal...@gmail.com>
Subject Re: how to use TimeUUID fields
Date Mon, 09 Nov 2009 15:38:43 GMT
Hi

There was a project UUID in apache can create TimeUUID , url is:
http://commons.apache.org/sandbox/id/uuid.html

please refer to javadoc:
http://commons.apache.org/sandbox/id/apidocs/org/apache/commons/id/uuid/UUID.html

code like:

*UUID<http://commons.apache.org/sandbox/id/apidocs/org/apache/commons/id/uuid/UUID.html>
uuid
= org.apache.commons.id.uuid.UUID.timeUUID<http://commons.apache.org/sandbox/id/apidocs/org/apache/commons/id/uuid/UUID.html#timeUUID()>
*()


thanks
-Santal

2009/11/9 Richard grossman <richiesgr@gmail.com>

> Hello
>
> I build a CF based on Date Time so I think there is a interrest to define
> the CF with compareBy TimeUUID. But I can't understand how to use this in
> java
> I've a Calendar object representing a date time.
> I want to use it as column name but as you know you can only put ther
> byte[] so how to pass from a Calendar to byte[].
>
> which representation I need to use ??
>
> Thanks to help
> If you know somewhere there is a sample or anything please
>
> Richard
>

Mime
View raw message