hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stack <st...@duboce.net>
Subject Re: Setting and using cell timestamp values to retrieve data
Date Wed, 02 Mar 2011 04:41:59 GMT
Why do you need to specify the timestamp?  Why not let the server do it?

Otherwise, the below should work for all but the case where many
clients writing from different machines with unsync'd clocks.


On Tue, Mar 1, 2011 at 3:18 PM, Usman Waheed <usmanw@opera.com> wrote:
> Hi,
> I have a test table where i have set all cells in it to have only one
> version (VERSIONS => 1).
> I was thinking of using the timestamp value with the row key + column(s) to
> retrieve data using getRowWithColumnsTs (Thrift Perl API).
> When i insert the data (perform puts) into my test table, i specify the
> timestamp values in EPOCH time (timestamp=1262304000 translates to 20100101
> This way i can retrieve data using a row key + column + timestamp and do not
> have to make YYYY-MM-DD part of the row key or a column family. If someone
> selects a date range i can build my list and then perform gets on it to get
> what i need.
> I don't suspect this will cause any problems because i only store one
> version of all cells but whenever i do a put i have to make sure to specify
> a timestamp.
> Will using the timestamp attribute in the above manner cause any potential
> hick ups on how Hbase operates? I suspect not but i might be missing
> something.
> Thanks,
> Usman
> --
> Using Opera's revolutionary email client: http://www.opera.com/mail/

View raw message