Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 7589310AB9 for ; Fri, 18 Oct 2013 20:35:05 +0000 (UTC) Received: (qmail 24117 invoked by uid 500); 18 Oct 2013 20:34:45 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 23946 invoked by uid 500); 18 Oct 2013 20:34:28 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 23854 invoked by uid 99); 18 Oct 2013 20:34:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 20:34:20 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.182 as permitted sender) Received: from [209.85.217.182] (HELO mail-lb0-f182.google.com) (209.85.217.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Oct 2013 20:34:14 +0000 Received: by mail-lb0-f182.google.com with SMTP id p9so3642851lbv.13 for ; Fri, 18 Oct 2013 13:33:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=2MOr/83oIq6PiG40FS/FzmyUllLItnVX/H8sLuPPAdA=; b=iSZ2FtD+TE94pD9dP5ONrsQLSaS4fLfZhjVZcgSOeOqUShG3SCopwvljBXNKrz5O7B Y+WsjTnN+5u8a70sENHyEgw8qD1hffhIjV8jIEeo/5ocsQE4/Tusfkli7NCVKAbMjpIh m6DTmu7J+1TaMJU1mODC2GFMKuuaKIFMRPSf3iC5jDrD5kyARG49M+Me/66Snu/fTcdZ ISPm+n9MFHHcoFeBGXzS2zH8nP48No5Otoasrj27paCZEVqwSyNYmNJaPCq3wYh/xtzu 83G9dQNQ+4zM0eKpWG4sTO9vnSVIBuse1MTrIud/YIQcBJ5jMK34W+UL4WAzU2em7FV0 uqiQ== MIME-Version: 1.0 X-Received: by 10.152.23.5 with SMTP id i5mr3864168laf.8.1382128434054; Fri, 18 Oct 2013 13:33:54 -0700 (PDT) Received: by 10.112.129.40 with HTTP; Fri, 18 Oct 2013 13:33:54 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Oct 2013 13:33:54 -0700 Message-ID: Subject: Re: Time stamp values in hbase Vs Java From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=089e0160bb9a588a2e04e909da60 X-Virus-Checked: Checked by ClamAV on apache.org --089e0160bb9a588a2e04e909da60 Content-Type: text/plain; charset=ISO-8859-1 See also http://hbase.apache.org/book.html#versions.ops , especially 5.9.1.4.2. Explicit Version Example On Fri, Oct 18, 2013 at 1:15 PM, Ted Yu wrote: > bq. the hbase timestamp long value has more digits than the one created > in Java. > > Can you give us an example ? > In the following, > http://www.ruddwire.com/handy-code/date-to-millisecond-calculators/ gives > me the date corresponding to timestamp value(s): > > hbase(main):007:0> scan 'test' > ROW COLUMN+CELL > row1 column=cf:a, timestamp=1288380727188, value=value1 > row2 column=cf:b, timestamp=1288380738440, value=value2 > > > > On Fri, Oct 18, 2013 at 12:55 PM, Hrishikesh P wrote: > >> How are the timestamps associated with cell versions within HBase >> similar/different to the long values that I get using >> System.currentTimeMillis() in Java? If I print both, the hbase timestamp >> long value has more digits than the one created in Java. >> Aren't both milliseconds since Jan 1, 1970? >> >> Thanks in advance. >> > > --089e0160bb9a588a2e04e909da60--