|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.client.RegionServerCallable<Result[]>
org.apache.hadoop.hbase.client.ScannerCallable
@InterfaceAudience.Private public class ScannerCallable
Scanner operations such as create, next, etc.
Used by ResultScanners made by HTable. Passed to a retrying caller such as
RpcRetryingCaller so fails are retried.
| Field Summary | |
|---|---|
static org.apache.commons.logging.Log |
LOG
|
static String |
LOG_SCANNER_ACTIVITY
|
static String |
LOG_SCANNER_LATENCY_CUTOFF
|
| Fields inherited from class org.apache.hadoop.hbase.client.RegionServerCallable |
|---|
MIN_WAIT_DEAD_SERVER |
| Constructor Summary | |
|---|---|
ScannerCallable(HConnection connection,
byte[] tableName,
Scan scan,
ScanMetrics scanMetrics)
Deprecated. Use ScannerCallable(HConnection, TableName, Scan, ScanMetrics) |
|
ScannerCallable(HConnection connection,
TableName tableName,
Scan scan,
ScanMetrics scanMetrics)
|
|
| Method Summary | |
|---|---|
Result[] |
call()
|
int |
getCaching()
Get the number of rows that will be fetched on next |
HRegionInfo |
getHRegionInfo()
|
protected Scan |
getScan()
|
protected long |
openScanner()
|
void |
prepare(boolean reload)
Prepare for connection to the server hosting region with row from tablename. |
void |
setCaching(int caching)
Set the number of rows that will be fetched on next |
void |
setClose()
Call this when the next invocation of call should close the scanner |
| Methods inherited from class org.apache.hadoop.hbase.client.RegionServerCallable |
|---|
getExceptionMessageAdditionalDetail, getLocation, getRow, getStub, getTableName, setLocation, sleep, throwable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_SCANNER_LATENCY_CUTOFF
public static final String LOG_SCANNER_ACTIVITY
public static final org.apache.commons.logging.Log LOG
| Constructor Detail |
|---|
public ScannerCallable(HConnection connection,
TableName tableName,
Scan scan,
ScanMetrics scanMetrics)
connection - which connectiontableName - table callable is onscan - the scan to executescanMetrics - the ScanMetrics to used, if it is null, ScannerCallable
won't collect metrics
@Deprecated
public ScannerCallable(HConnection connection,
byte[] tableName,
Scan scan,
ScanMetrics scanMetrics)
ScannerCallable(HConnection, TableName, Scan, ScanMetrics)
| Method Detail |
|---|
public void prepare(boolean reload)
throws IOException
RegionServerCallable
prepare in interface RetryingCallable<Result[]>prepare in class RegionServerCallable<Result[]>reload - force reload of server location
IOException
public Result[] call()
throws IOException
IOExceptionCallable.call()
protected long openScanner()
throws IOException
IOExceptionprotected Scan getScan()
public void setClose()
public HRegionInfo getHRegionInfo()
getHRegionInfo in class RegionServerCallable<Result[]>public int getCaching()
public void setCaching(int caching)
caching - the number of rows for caching
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||