hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lars George <lars.geo...@gmail.com>
Subject Re: Confusing the retrieve result with a given timestamp
Date Fri, 19 Nov 2010 10:07:53 GMT
Have a read here:

http://outerthought.org/blog/417-ot.html

Especially: "One interesting option that is missing is the ability to
retrieve the latest version less than or equal to a given timestamp,
thus giving the 'latest' state of the record at a certain point in
time. Update: this is (obviously) possible: just use a range from 0 to
the desired timestamp and set the max versions to 1 (thanks
Jonathan)."

Adding a time range to the Shell is trivial, currently it only
implements a fixed TIMESTAMP though. You could also use a Scan call
from the shell as that has a MINTIMESTAMP and MAXTIMESTAMP option.
That is for 0.20.x, apparently "someone" forgot to port this to 0.89?

Lars

On Fri, Nov 19, 2010 at 6:49 AM, Pan W <pwcrab@gmail.com> wrote:
> Hi, ryan,  just as you say , now I am using setTimeRange to fulfill my request.
>
>  I am just curious on the 'less than' concept,
>
>   'If an application asks for a given row at a given timestamp,
>   HBase will return cell data where the timestamp is less than or
>   equal to  the one provided.'
>
> especially  'at a given timestamp'  not time range...
>
> --
> Pan W <pwcrab@gmail.com>
>
>

Mime
View raw message