@InterfaceAudience.Private public class ReversedScannerCallable extends ScannerCallable
closed, cursor, heartbeatMessage, id, instantiated, isRegionServerRemote, LOG, LOG_SCANNER_ACTIVITY, LOG_SCANNER_LATENCY_CUTOFF, renew, rpcControllerFactory, scan, scanMetrics, scannerId
location, MIN_WAIT_DEAD_SERVER, rpcController, stub
Constructor and Description |
---|
ReversedScannerCallable(ClusterConnection connection,
TableName tableName,
Scan scan,
ScanMetrics scanMetrics,
RpcControllerFactory rpcFactory) |
ReversedScannerCallable(ClusterConnection connection,
TableName tableName,
Scan scan,
ScanMetrics scanMetrics,
RpcControllerFactory rpcFactory,
int replicaId) |
Modifier and Type | Method and Description |
---|---|
ScannerCallable |
getScannerCallableForReplica(int id) |
void |
prepare(boolean reload)
Prepare by setting up any connections to servers, etc., ahead of call invocation.
|
checkIfRegionServerIsRemote, getCaching, getCursor, getHRegionInfo, getScan, rpcCall, setCaching, setClose, setRenew
doGet, doMutate, setStubByServiceName
call, getConnection, getExceptionMessageAdditionalDetail, getLocation, getRow, getRpcController, getRpcControllerCellScanner, getStub, getTableName, setLocation, setRpcControllerCellScanner, setStub, sleep, throwable
public ReversedScannerCallable(ClusterConnection connection, TableName tableName, Scan scan, ScanMetrics scanMetrics, RpcControllerFactory rpcFactory)
connection
- tableName
- scan
- scanMetrics
- rpcFactory
- to create an RpcController
to talk to the
regionserverpublic ReversedScannerCallable(ClusterConnection connection, TableName tableName, Scan scan, ScanMetrics scanMetrics, RpcControllerFactory rpcFactory, int replicaId)
connection
- tableName
- scan
- scanMetrics
- rpcFactory
- to create an RpcController
to talk to the
regionserverreplicaId
- the replica idpublic void prepare(boolean reload) throws IOException
RetryingCallable
prepare
in interface RetryingCallable<Result[]>
prepare
in class ScannerCallable
reload
- force reload of server locationIOException
public ScannerCallable getScannerCallableForReplica(int id)
getScannerCallableForReplica
in class ScannerCallable
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.