Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B5CAB11E7E for ; Sat, 29 Mar 2014 00:01:51 +0000 (UTC) Received: (qmail 27702 invoked by uid 500); 29 Mar 2014 00:01:46 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 27661 invoked by uid 500); 29 Mar 2014 00:01:44 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 27625 invoked by uid 99); 29 Mar 2014 00:01:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 00:01:41 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of andyatj2@gmail.com designates 209.85.219.68 as permitted sender) Received: from [209.85.219.68] (HELO mail-oa0-f68.google.com) (209.85.219.68) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2014 00:01:35 +0000 Received: by mail-oa0-f68.google.com with SMTP id i7so1456057oag.7 for ; Fri, 28 Mar 2014 17:01:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wZo+VwopUKtwR8QnNPLPFqu4Nc7dq5uFTTdJXJaFKZ4=; b=Ew6mAv+QrD7NSUDW7OaLj7N0Tbjt3z+oJQrqgQmo/Vl/XuNJIRGjzTvEL3MUtiRYnr Kc2qkxwa6r3gJauy9iCK9VWZDyftsThYqIdNNhgfj5FHlGiQTz4gYtNa7x7z97YyMGyH h9KnBntfRylKUuw9Wwyln0CCL3+IO9YvKptjD9ihJhtoefEPzDZ/vgn+wT5dzonHGPi4 drflMcucSL3ymNlUd5Pl9kmcXh08o9re1MbvbCMruIh+idE6QBHA4w/4+NtFGVBPlUJp tvoLgoQ7WAnMc7K+mVPBn1uDCCMO48sGsW1e0wZ0u8hbuK1tDcSvukjEyLZt5nglAPWZ P/Bw== MIME-Version: 1.0 X-Received: by 10.182.150.40 with SMTP id uf8mr9263704obb.19.1396051275131; Fri, 28 Mar 2014 17:01:15 -0700 (PDT) Received: by 10.182.129.202 with HTTP; Fri, 28 Mar 2014 17:01:15 -0700 (PDT) Date: Fri, 28 Mar 2014 17:01:15 -0700 Message-ID: Subject: Timeuuid inserted with now(), how to get the value back in Java client? From: Andy Atj2 To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=f46d0447879157b05604f5b38454 X-Virus-Checked: Checked by ClamAV on apache.org --f46d0447879157b05604f5b38454 Content-Type: text/plain; charset=ISO-8859-1 I'm writing a Java client to a Cassandra db. One of the main primary keys is a timeuuid. I plan to do INSERTs using now() and have Cassandra generate the value of the timeuuid. After the INSERT, I need the Cassandra-generated timeuuid value. Is there an easy wsay to get it, without having to re-query for the record I just inserted, hoping to get only one record back? Remember, I don't have the PK. Eg, in every other db there's a way to get the generated PK back. In sql it's @@identity, in oracle its...etc etc. I know Cassandra is not an RDBMS. All I want is the value Cassandra just generated. Thanks, Andy --f46d0447879157b05604f5b38454 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I'm writing a Java client to a Cassandra db.

One of the main primary keys is a timeuuid.
=
I plan to do INSERTs using now() and have Cassandra generate= the value of the timeuuid.

After the INSERT, I need the Cassandra-generated timeuu= id value. Is there an easy wsay to get it, without having to re-query for t= he record I just inserted, hoping to get only one record back? Remember, I = don't have the PK.

Eg, in every other db there's a way to get the gene= rated PK back. In sql it's @@identity, in oracle its...etc etc.

I know Cassandra is not an RDBMS. All I want is the value= Cassandra just generated.

Thanks,
Andy

--f46d0447879157b05604f5b38454--