hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Marc Spaggiari <jean-m...@spaggiari.org>
Subject Re: get first row of every region
Date Tue, 02 Aug 2016 02:53:55 GMT
Well,  then it should return the row from the next region.

So it might means that the last region is empty or the last X regions,  no?

Le 2016-08-01 7:52 PM, "Vladimir Rodionov" <vladrodionov@gmail.com> a
écrit :

> it means that for some regions you do not have any data.
>
> -Vlad
>
> On Mon, Aug 1, 2016 at 7:21 PM, jinhong lu <lujinhong2@gmail.com> wrote:
>
> >  Thanks. Here is my code, but in most case, r is null? why this happened?
> >
> >                                 byte[] startRowkey =
> > regionInfo.getStartKey();
> >                                 Scan sc = new Scan();
> >                                 sc.setBatch(1);
> >                                 sc.setRowPrefixFilter(startRowkey);
> >                                 try {
> >                                         scanner = table.getScanner(sc);
> >                                         r = scanner.next();
> >                                         scanner.close();
> >                                 }
> > Thanks,
> > lujinhong
> >
> > > 在 2016年8月1日,18:49,Ted Yu <yuzhihong@gmail.com <mailto:
> > yuzhihong@gmail.com>> 写道:
> > >
> > > .
> >
> >
>

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