hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Solomon Duskis <sdus...@gmail.com>
Subject Re: Iteration in ResultScanner
Date Tue, 19 Jan 2016 13:15:11 GMT
It sounds like you want a Get rathe than a scan.  *table.get(new
Get("id100".**getBytes()));* should do the trick.

On Tue, Jan 19, 2016 at 7:17 AM, Rajeshkumar J <rajeshkumarit8292@gmail.com>
wrote:

> Hi,
>
>  I have implemented Range scan using Java API as shown below
>
>             Scan scan = new Scan();
>             Configuration config = HBaseConfiguration.create();
>             HTable table = new HTable(config, "tablename");
>             scan.setStartRow("id100".getBytes());
>             scan.setStopRow("id100".getBytes());
>             ResultScanner scanner = table.getScanner(scan);
>
> Is there any option like so that i can get all the column values only for a
> particular row-key without iteration.
>
> For ex : I have used id100 which is a row-key. After the scan completed how
> to get all the column values  of id100 row key without iteration.
>
> Thanks,
> Rajeshkumar J
>

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