Return-Path: Delivered-To: apmail-incubator-cassandra-user-archive@minotaur.apache.org Received: (qmail 42205 invoked from network); 9 Nov 2009 14:10:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Nov 2009 14:10:19 -0000 Received: (qmail 44282 invoked by uid 500); 9 Nov 2009 14:10:19 -0000 Delivered-To: apmail-incubator-cassandra-user-archive@incubator.apache.org Received: (qmail 44254 invoked by uid 500); 9 Nov 2009 14:10:19 -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 44245 invoked by uid 99); 9 Nov 2009 14:10:19 -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 14:10:19 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of richiesgr@gmail.com designates 72.14.220.155 as permitted sender) Received: from [72.14.220.155] (HELO fg-out-1718.google.com) (72.14.220.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Nov 2009 14:10:16 +0000 Received: by fg-out-1718.google.com with SMTP id e12so747502fga.0 for ; Mon, 09 Nov 2009 06:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=eVPWwgnDUV3Y+m8Kq1c5fxmeKFXtlf/ry8YMX+EbKoA=; b=VHD9h9PAR6ZyobdilQS4CfHbliLBn9zvA7gbzrq2tp6gByLKmckdDz3w+XEjbjm+V8 MMDpfcgACTDrJdG1Ix0FVNjs5quPezes/m3JJ88pb4ULUZfwPW92hUV/SYHu9/u4LU7f s6Vx3o3iCxxVVlO67jF/bF+t5qavqfQIQrTp0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=GWwmAG2i1EB8OgF9yMadQh+4suj5QSMI+nInmSyRxkmJbKKy7WqEOfUt0unDLGu3Hp DKfqFrUfptz0b9svkUSbCmYTFDIDFq//AJSQ8QAum8c6a+yLCb1jX4Il5ymA4yX60UWt U9vxAYDgXIyEbDJl3/i/BWsYCEFu9XFaKLsXc= MIME-Version: 1.0 Received: by 10.87.62.10 with SMTP id p10mr8305262fgk.24.1257775794674; Mon, 09 Nov 2009 06:09:54 -0800 (PST) Date: Mon, 9 Nov 2009 16:09:54 +0200 Message-ID: <468b21170911090609u3682e4e9h7b086e900e4aaac8@mail.gmail.com> Subject: how to use TimeUUID fields From: Richard grossman To: cassandra-user@incubator.apache.org Content-Type: multipart/alternative; boundary=001485f92214733b5c0477f0bfa9 --001485f92214733b5c0477f0bfa9 Content-Type: text/plain; charset=ISO-8859-1 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 --001485f92214733b5c0477f0bfa9 Content-Type: text/html; charset=ISO-8859-1
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
--001485f92214733b5c0477f0bfa9--