Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 17FAE200BB6 for ; Fri, 4 Nov 2016 10:37:38 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 16956160AE9; Fri, 4 Nov 2016 09:37:38 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5B5D9160AE8 for ; Fri, 4 Nov 2016 10:37:37 +0100 (CET) Received: (qmail 98154 invoked by uid 500); 4 Nov 2016 09:37:35 -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 98144 invoked by uid 99); 4 Nov 2016 09:37:35 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Nov 2016 09:37:35 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 430AFC193A for ; Fri, 4 Nov 2016 09:37:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id gV-5syDElDub for ; Fri, 4 Nov 2016 09:37:33 +0000 (UTC) Received: from mail-ua0-f173.google.com (mail-ua0-f173.google.com [209.85.217.173]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id AD6665FC6E for ; Fri, 4 Nov 2016 09:37:32 +0000 (UTC) Received: by mail-ua0-f173.google.com with SMTP id 12so61503186uas.2 for ; Fri, 04 Nov 2016 02:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=2T03BOr44tr1qQVCKbcuwu9kQ1f4fHwKv4KtFKer0R4=; b=bZ3fakCoDJxyUBvf5XwSWtZZ9seaj6VO6/dthl/4/HXc4AS1YhHhm9F6tQlXoJflP+ XLRaxZsFmJ0ykSe1T5DoJvtApEdh4cJkIadC2nNGjd+r2RhrFeV+HK5yEH+qncjo1zaX 7oGdTCgMhYC16f/AYoZatm5ASMVKrGWJMf2NMw+ahjJfx/ZtBPsR3fGJAUm4IL6Pi6hZ NJmDglsBJ8/KL9B3ws8lUybfhgzt+vpTUKeFgg+OD/pMzZOykWTnuDH/zsqR5jTWfbeD FIhc80k6pMlTu7Y1tGAvo1xMidg9cUvIKJUXSB3tkShHDhiZ0Cr1wJwrCwE9mRz6sTRH BrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=2T03BOr44tr1qQVCKbcuwu9kQ1f4fHwKv4KtFKer0R4=; b=KlrhffNzDZErqGm+MAMbM36VeTCIVQBBD+0IZHzkzc183xgV+UZQandBjUTmBoLPvN 9yexT70Ek9J543rTJnC5hFTdehBuiadCA46y0xtZXPIGUYZmSR6CGN5xIFxzALk6ygh6 rnsoZWYrkYEvEGeOjbuo+wttxOelLzA37d1Wz7ShuRCeqATCEyR+I38xLqG6IqXftkZA jcqicD7Y90wps2NL4OMpr76cnKQ131hwKqbeJyAxie7mLuavijNwRsEcTzSQFOu9s9DY B61p263VWbDBGds/O2yzEcx/1/cqoUFrGUSkUL+5GqfqViMRiTsuqSIuz/78Xg70epEC tZ2Q== X-Gm-Message-State: ABUngvfOLMJ2kJCabj6lB7shKv2Eut5hNmOt7CTIgCOnTpuWk49dhmv8l2YPmGBSFojwAIGTx7aRH6ceQFddPQ== X-Received: by 10.176.1.11 with SMTP id 11mr10654635uak.172.1478252252140; Fri, 04 Nov 2016 02:37:32 -0700 (PDT) MIME-Version: 1.0 Received: by 10.103.149.137 with HTTP; Fri, 4 Nov 2016 02:37:11 -0700 (PDT) In-Reply-To: References: From: DuyHai Doan Date: Fri, 4 Nov 2016 10:37:11 +0100 Message-ID: Subject: Re: Using Instants for timestamps in Java mappings? To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a113e4792609b120540766c72 archived-at: Fri, 04 Nov 2016 09:37:38 -0000 --001a113e4792609b120540766c72 Content-Type: text/plain; charset=UTF-8 You can: 1) Define your own codec : http://datastax.github.io/java-driver/manual/custom_codecs/ 2) Use the InstantCodec from Java drive extra module: https://github.com/datastax/java-driver/blob/3.x/driver-extras/src/main/java/com/datastax/driver/extras/codecs/jdk8/InstantCodec.java On Fri, Nov 4, 2016 at 8:39 AM, Ali Akhtar wrote: > Is it possible to use Instants to represent timestamp columns in java > mappings of cassandra tables? (Using the official java driver) > --001a113e4792609b120540766c72 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Fri, Nov 4, 2016 at 8:39 AM, Ali Akh= tar <ali.rac200@gmail.com> wrote:
Is it possible to use Instants to represent tim= estamp columns in java mappings of cassandra tables? (Using the official ja= va driver)

--001a113e4792609b120540766c72--