|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.HTable.ClientScanner
protected class HTable.ClientScanner
Implements the scanner interface for the HBase client. If there are multiple regions in a table, this scanner will iterate through them all.
Constructor Summary | |
---|---|
protected |
HTable.ClientScanner(Scan scan)
|
Method Summary | |
---|---|
void |
close()
Closes the scanner and releases any resources it has allocated |
protected Scan |
getScan()
|
protected ScannerCallable |
getScannerCallable(byte[] localStartKey,
int nbRows)
|
protected long |
getTimestamp()
|
void |
initialize()
|
Iterator<Result> |
iterator()
|
Result |
next()
Grab the next row's worth of values. |
Result[] |
next(int nbRows)
Get nbRows rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HTable.ClientScanner(Scan scan)
Method Detail |
---|
public void initialize() throws IOException
IOException
protected Scan getScan()
protected long getTimestamp()
protected ScannerCallable getScannerCallable(byte[] localStartKey, int nbRows)
public Result next() throws IOException
ResultScanner
next
in interface ResultScanner
IOException
- epublic Result[] next(int nbRows) throws IOException
Scan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).
next
in interface ResultScanner
nbRows
- number of rows to return
IOException
public void close()
ResultScanner
close
in interface Closeable
close
in interface ResultScanner
public Iterator<Result> iterator()
iterator
in interface Iterable<Result>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |