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/

Reply via email to