Scan Hbase for particular rowkey's -


i want columns hbase table within particular rowkey.

eg:  rowkey starts 123456  rowkey ends 123466  want fetch programatically (in java) columns  within rowkeym only. 

this quite straight forward. have tried anything? anyways,

configuration conf = hbaseconfiguration.create(); htable table = new htable(conf, "tablename"); scan scan = new scan(); scan.setstartrow(bytes.tobytes("123456")); scan.setstoprow(bytes.tobytes("123456")); resultscanner rs = table.getscanner(); (result result : scanner) {      (keyvalue kv : result.raw()) {         system.out.println("kv: " + kv + ", value: " +         bytes.tostring(kv.getvalue()));      } } scanner.close();     

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -