|
||||||||||
| 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()
|
java.util.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 java.io.IOException
java.io.IOExceptionprotected Scan getScan()
protected long getTimestamp()
protected ScannerCallable getScannerCallable(byte[] localStartKey,
int nbRows)
public Result next()
throws java.io.IOException
ResultScanner
next in interface ResultScannerjava.io.IOException - e
public Result[] next(int nbRows)
throws java.io.IOException
Scan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).
next in interface ResultScannernbRows - number of rows to return
java.io.IOExceptionpublic void close()
ResultScanner
close in interface java.io.Closeableclose in interface ResultScannerpublic java.util.Iterator<Result> iterator()
iterator in interface java.lang.Iterable<Result>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||