|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.client.AbstractClientScanner
org.apache.hadoop.hbase.client.ClientScanner
@InterfaceAudience.Public @InterfaceStability.Stable public class 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 | |
|---|---|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName)
Create a new ClientScanner for the specified table. |
|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection)
Create a new ClientScanner for the specified table Note that the passed Scan's start row maybe changed changed. |
|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection,
RpcRetryingCallerFactory rpcFactory)
Create a new ClientScanner for the specified table Note that the passed Scan's start
row maybe changed changed. |
|
| Method Summary | |
|---|---|
void |
close()
Closes the scanner and releases any resources it has allocated |
protected HConnection |
getConnection()
|
protected Scan |
getScan()
|
protected ScannerCallable |
getScannerCallable(byte[] localStartKey,
int nbRows)
|
protected TableName |
getTableName()
|
protected long |
getTimestamp()
|
Result |
next()
Grab the next row's worth of values. |
Result[] |
next(int nbRows)
Get nbRows rows. |
| Methods inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner |
|---|
iterator |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName)
throws IOException
Scan's start row maybe changed changed.
conf - The Configuration to use.scan - Scan to use in this scannertableName - The table that we wish to scan
IOException
public ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection)
throws IOException
Scan's start row maybe changed changed.
conf - The Configuration to use.scan - Scan to use in this scannertableName - The table that we wish to scanconnection - Connection identifying the cluster
IOException
public ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection,
RpcRetryingCallerFactory rpcFactory)
throws IOException
Scan's start
row maybe changed changed.
conf - The Configuration to use.scan - Scan to use in this scannertableName - The table that we wish to scanconnection - Connection identifying the cluster
IOException| Method Detail |
|---|
protected HConnection getConnection()
protected TableName getTableName()
protected Scan getScan()
protected long getTimestamp()
protected ScannerCallable getScannerCallable(byte[] localStartKey,
int nbRows)
public Result next()
throws IOException
ResultScanner
IOException - e
public Result[] next(int nbRows)
throws IOException
Scan.setCaching(int)
setting (or hbase.client.scanner.caching in hbase-site.xml).
nbRows - number of rows to return
IOExceptionpublic void close()
ResultScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||