hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Time stamp values in hbase Vs Java
Date Fri, 18 Oct 2013 20:33:54 GMT
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 <yuzhihong@gmail.com> 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 <hrishi.engineer@gmail.com>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.
>>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message