What you trying to do Dani. There is sample code here if thats of any good to you: http://hbase.apache.org/apidocs/org/apache/hadoop/hbase/client/package-summary.html#package_description
St.Ack On Mon, Jan 24, 2011 at 7:26 PM, Dani Rayan <[email protected]> wrote: > Hi, > > Currently I am calling table.getScanner each time to reset the cursor to > initial row. > > My code is something like this: > > while (1) > { > /* > * I need a cursor to first row each time. > * Also, I tried storing the ResultScanner into a temp obj to avoid calling > table.getscanner. It didn't work > * / > > ResultScanner refscanner = table.getScanner(Bytes.toBytes("ColA")); // > Looks expensive. > for (Result refResult = refscanner.next(); refResult != null; refResult = > refscanner.next()) { > // do someting > } > } > > The getscanner operation looks expensive. Am I m(i,e)ssing something ? > Yes. RFTMed. > Any help would be appreciated. > > > -Thanks, > Dani > http://www.cc.gatech.edu/~iar3/ >
