Re: Version in HBase

2014-11-13 Thread Krishna Kalyan
Thanks Anoop. This worked On Wed, Nov 12, 2014 at 4:50 PM, Anoop John wrote: > So you want one version with ts<= give ts? > > Have a look at Scan#setTimeRange(long minStamp, long maxStamp) > If you know the exact ts for cells, you can use Scan#setTimeStamp(long > timestamp) > > -Anoop- > > On We

Re: Version in HBase

2014-11-12 Thread Anoop John
So you want one version with ts<= give ts? Have a look at Scan#setTimeRange(long minStamp, long maxStamp) If you know the exact ts for cells, you can use Scan#setTimeStamp(long timestamp) -Anoop- On Wed, Nov 12, 2014 at 11:17 AM, Krishna Kalyan wrote: > For Example for table 'test_table', Valu

Re: Version in HBase

2014-11-11 Thread Krishna Kalyan
For Example for table 'test_table', Values inserted are: Row1 - Val1 => t Row1 - Val2 => t + 3 Row1 - Val3 => t + 5 Row2 - Val1 => t Row2 - Val2 => t + 3 Row2 - Val3 => t + 5 on scan 'test_table' where version = t + 4 should return Row1 - Val1 => t + 3 Row2 - Val2 => t + 3 How do i achieve time

Version in HBase

2014-11-11 Thread Krishna Kalyan
Hi, Is it possible to do a select * from where version = "somedate" ; using HBase APIs?. (Scanning for values where version <= "somedate" ) Could you please direct me to appropriate links to achieve this?. Regards, Krishna