If u want data of timeStamp2 also, (All 6 rows as shown in eg: above) then
you have to put timeStamp3 in stop row..   The stop row is exclusive.

startRow : aabb|timeStamp1|

stopRow is : aabb|timeStamp3


-Anoop-


On Wed, Apr 22, 2015 at 5:09 PM, Shahab Yunus <shahab.yu...@gmail.com>
wrote:

> I see that you are already using partial key scan approach.
>
> When you say that you want data from the timeStamp2 as well, you want all
> the rows from timeStamp2? Also, how are you actually setting the stopRow?
> What are you providing for the *anyNumber field when you are setting
> stopRow?
>
> e.g. if your data is:
>
> aabb|timeStamp1
> aabb|timeStamp1|5
> aabb|timeStamp1|9
> aabb|timeStamp2|3
> aabb|timeStamp2|4
> aabb|timeStamp2|5
>
> In this case you want all 6 rows, right?
>
>
> Regards,
> Shahab
>
> On Wed, Apr 22, 2015 at 7:03 AM, Sachin <scorpio.king...@gmail.com> wrote:
>
> > My rowkey format is uniqueid|timestamp|randomnumber.
> >
> > I want to retrieve data from hbase by using scanner with java api where
> my
> > startRow : aabb|timeStamp1|
> > stopRow is : aabb|timeStamp2|any_number
> >
> > timeStamp1 and timeStamp2 are time ranges. So I want to fetch all values
> in
> > between above timestamp where my *any_number can be anything it's * in
> > regular expression. So my start and stop rows become :
> >
> > startRow : aabb|timeStamp1|
> > stopRow is : aabb|timeStamp2|*
> >
> > I set these param to scan object but its not fetching data from hbase.
> Can
> > anyone tell me how to do that?
> >
> >
>

Reply via email to