Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 84386 invoked from network); 9 Nov 2009 15:39:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 15:39:08 -0000 Received: (qmail 14887 invoked by uid 500); 9 Nov 2009 15:39:07 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 14850 invoked by uid 500); 9 Nov 2009 15:39:07 -0000 Mailing-List: contact cassandra-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-user@incubator.apache.org Delivered-To: mailing list cassandra-user@incubator.apache.org Received: (qmail 14841 invoked by uid 99); 9 Nov 2009 15:39:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 15:39:07 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of santal.li@gmail.com designates 209.85.221.191 as permitted sender) Received: from [209.85.221.191] (HELO mail-qy0-f191.google.com) (209.85.221.191) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 15:39:05 +0000 Received: by qyk29 with SMTP id 29so1236900qyk.32 for ; Mon, 09 Nov 2009 07:38:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=o20uR/TNlzHjX3vmadb5mR9Thgeg8gEEkAjzXgSRX0A=; b=b1cwaBKhCg4ZfjXoMjr8HnvT7wvbHfXsdyjACHxH34+QQyovD87jVl5s8V20P/dEp9 KJIP0/fIxhNuZLPFePrQCT6+1/o4HR0FmBajp9pW5BSo6rlXsZdc3nTdpql9Rpn8f8a6 U1Xmb6MI0RwMY7rb7euT7h0jMVoKZhhvNBunA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fC8SvSGA4iW4jcOnL1HJ8gnJI450+VKf4M1XzTLtk2wTHfhG10UJvWfGu8ayRgT68E QZziNajuRlBSFGofRqCcWX8YiVUgtLDFn4XMM+0opG4+zDRzDecYM3kigHeWG/eBpYt6 nzu+oya+3mCd9Q2RgHIyf4i2ebj2pBMuRWhuk= MIME-Version: 1.0 Received: by 10.229.31.206 with SMTP id z14mr1043846qcc.79.1257781123988; Mon, 09 Nov 2009 07:38:43 -0800 (PST) In-Reply-To: <468b21170911090609u3682e4e9h7b086e900e4aaac8@mail.gmail.com> References: <468b21170911090609u3682e4e9h7b086e900e4aaac8@mail.gmail.com> Date: Mon, 9 Nov 2009 23:38:43 +0800 Message-ID: Subject: Re: how to use TimeUUID fields From: Santal Li To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=0016364eee5419bc290477f1fdca --0016364eee5419bc290477f1fdca Content-Type: text/plain; charset=ISO-8859-1 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 uuid = org.apache.commons.id.uuid.UUID.timeUUID *() thanks -Santal 2009/11/9 Richard grossman > 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 > --0016364eee5419bc290477f1fdca Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi

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


code like:

UUID=A0uuid =3D=A0org.apache.c= ommons.id.uuid.UUID.timeUUID()=

<= div>
thanks<= div>-Santal

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

I build a CF based on Date Time so I think th= ere 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 represen= ting 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 n= eed to use ??

Thanks to help
If you know somewhere there is a sam= ple or anything please

Richard

--0016364eee5419bc290477f1fdca--