Ok Doug,
Thanks for pointing. 2 row selection is just the example I use but yes I will
keep this in mind.
-Original Message-
From: Doug Meil [mailto:doug.m...@explorysmedical.com]
Sent: Friday, January 20, 2012 7:01 PM
To: user@hbase.apache.org
Subject: Re: Java api to apply limit in
Also, if you know you only want 2 rows, for example, make sure the caching
is set to 2 so that it only reads that many on the RegionServer.
On 1/20/12 12:31 AM, "Harsh J" wrote:
>Hi Stuti,
>
>The way the Shell does it is by iterating over the ResultScanner iterator
>for only LIMIT number of
Ok . Thanks Harsh :)
-Original Message-
From: Harsh J [mailto:ha...@cloudera.com]
Sent: Friday, January 20, 2012 11:01 AM
To: user@hbase.apache.org
Cc: hbase-u...@hadoop.apache.org
Subject: Re: Java api to apply limit in scan
Hi Stuti,
The way the Shell does it is by iterating over the
Hi Stuti,
The way the Shell does it is by iterating over the ResultScanner iterator for
only LIMIT number of times alone and then exiting out. There is no API that
specifies a LIMIT clause of sorts, its to be self-built by you.
On 20-Jan-2012, at 10:53 AM, Stuti Awasthi wrote:
> Hi ,
> I am lo
Hi ,
I am looking into how to limit the output of scans. I got this in shell but not
able to get any java api for that. I am sure I am missing it.
scan 't1',{LIMIT=>2}
Please suggest me the scan api for limit the output of scan.
Thanks
Regards,
Stuti Awasthi
HCL Comnet Systems and Services Ltd