|
||||||||||
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.
Field Summary | |
---|---|
protected LinkedList<Result> |
cache
|
protected int |
caching
|
protected ScannerCallable |
callable
|
protected RpcRetryingCaller<Result[]> |
caller
|
protected boolean |
closed
|
protected HRegionInfo |
currentRegion
|
protected long |
lastNext
|
protected Result |
lastResult
|
protected long |
maxScannerResultSize
|
protected RpcControllerFactory |
rpcControllerFactory
|
protected Scan |
scan
|
protected boolean |
scanMetricsPublished
|
protected int |
scannerTimeout
|
Fields inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner |
---|
scanMetrics |
Constructor Summary | |
---|---|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
byte[] tableName)
Deprecated. Use ClientScanner(Configuration, Scan, TableName) |
|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
byte[] tableName,
HConnection connection)
Deprecated. Use ClientScanner(Configuration, Scan, TableName, HConnection) |
|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName)
Deprecated. |
|
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)
Deprecated. Use ClientScanner(Configuration, Scan, TableName, HConnection,
RpcRetryingCallerFactory, RpcControllerFactory)
instead |
|
ClientScanner(org.apache.hadoop.conf.Configuration conf,
Scan scan,
TableName tableName,
HConnection connection,
RpcRetryingCallerFactory rpcFactory,
RpcControllerFactory controllerFactory)
Create a new ClientScanner for the specified table Note that the passed Scan 's start
row maybe changed changed. |
Method Summary | |
---|---|
protected boolean |
checkScanStopRow(byte[] endKey)
|
void |
close()
Closes the scanner and releases any resources it has allocated |
int |
getCacheSize()
|
protected HConnection |
getConnection()
|
protected long |
getMaxResultSize()
|
protected Scan |
getScan()
|
protected ScannerCallable |
getScannerCallable(byte[] localStartKey,
int nbRows)
|
protected TableName |
getTable()
|
protected byte[] |
getTableName()
Deprecated. Since 0.96.0; use getTable() |
protected long |
getTimestamp()
|
protected void |
initializeScannerInConstruction()
|
protected void |
loadCache()
Contact the servers to load more Result s in the cache. |
Result |
next()
Grab the next row's worth of values. |
protected boolean |
nextScanner(int nbRows,
boolean done)
|
boolean |
renewLease()
Allow the client to renew the scanner's lease on the server. |
protected void |
writeScanMetrics()
Publish the scan metrics. |
Methods inherited from class org.apache.hadoop.hbase.client.AbstractClientScanner |
---|
getScanMetrics, initScanMetrics, iterator, next |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Scan scan
protected boolean closed
protected HRegionInfo currentRegion
protected ScannerCallable callable
protected final LinkedList<Result> cache
protected final int caching
protected long lastNext
protected Result lastResult
protected final long maxScannerResultSize
protected final int scannerTimeout
protected boolean scanMetricsPublished
protected RpcRetryingCaller<Result[]> caller
protected RpcControllerFactory rpcControllerFactory
Constructor Detail |
---|
@Deprecated 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
@Deprecated public ClientScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, byte[] tableName) throws IOException
ClientScanner(Configuration, Scan, TableName)
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
@Deprecated public ClientScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, byte[] tableName, HConnection connection) throws IOException
ClientScanner(Configuration, Scan, TableName, HConnection)
IOException
@Deprecated public ClientScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, TableName tableName, HConnection connection, RpcRetryingCallerFactory rpcFactory) throws IOException
ClientScanner(Configuration, Scan, TableName, HConnection,
RpcRetryingCallerFactory, RpcControllerFactory)
instead
IOException
public ClientScanner(org.apache.hadoop.conf.Configuration conf, Scan scan, TableName tableName, HConnection connection, RpcRetryingCallerFactory rpcFactory, RpcControllerFactory controllerFactory) 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 void initializeScannerInConstruction() throws IOException
IOException
protected HConnection getConnection()
@Deprecated protected byte[] getTableName()
getTable()
protected TableName getTable()
protected Scan getScan()
protected long getTimestamp()
protected long getMaxResultSize()
protected boolean checkScanStopRow(byte[] endKey)
protected boolean nextScanner(int nbRows, boolean done) throws IOException
IOException
@InterfaceAudience.Private protected ScannerCallable getScannerCallable(byte[] localStartKey, int nbRows)
protected void writeScanMetrics()
public Result next() throws IOException
ResultScanner
IOException
- epublic int getCacheSize()
protected void loadCache() throws IOException
Result
s in the cache.
IOException
public void close()
ResultScanner
public boolean renewLease()
AbstractClientScanner
renewLease
in class AbstractClientScanner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |