@InterfaceAudience.Private public class ReversedScannerCallable extends ScannerCallable
ScannerCallable.MoreResults
Modifier and Type | Field and Description |
---|---|
private byte[] |
locationSearchKey |
closed, cursor, heartbeatMessage, id, instantiated, isRegionServerRemote, LOG, LOG_SCANNER_ACTIVITY, LOG_SCANNER_LATENCY_CUTOFF, renew, rpcControllerFactory, scan, scanMetrics, scannerId
location, rpcController, stub
Constructor and Description |
---|
ReversedScannerCallable(ClusterConnection connection,
TableName tableName,
Scan scan,
ScanMetrics scanMetrics,
RpcControllerFactory rpcFactory,
int replicaId) |
Modifier and Type | Method and Description |
---|---|
ScannerCallable |
getScannerCallableForReplica(int id) |
private Pair<HRegionLocation,byte[]> |
locateLastRegionInRange(byte[] startKey,
byte[] endKey)
Get the last region before the endkey, which will be used to execute the reverse scan
|
void |
prepare(boolean reload)
Prepare by setting up any connections to servers, etc., ahead of call invocation.
|
void |
throwable(Throwable t,
boolean retrying)
Called when call throws an exception and we are going to retry; take action to make it so we
succeed on next call (clear caches, do relookup of locations, etc.).
|
checkIfRegionServerIsRemote, getCaching, getCursor, getHRegionInfo, getLocationForReplica, getRegionLocationsForPrepare, getScan, isHeartbeatMessage, moreResultsForScan, moreResultsInRegion, rpcCall, setCaching, setClose, setMoreResultsForScan, setMoreResultsInRegion, setRenew
doGet, doMutate, setStubByServiceName
call, getConnection, getExceptionMessageAdditionalDetail, getLocation, getPriority, getRow, getRpcController, getRpcControllerCellScanner, getStub, getTableName, setLocation, setRpcControllerCellScanner, setStub, sleep
private byte[] locationSearchKey
public ReversedScannerCallable(ClusterConnection connection, TableName tableName, Scan scan, ScanMetrics scanMetrics, RpcControllerFactory rpcFactory, int replicaId)
connection
- which connectiontableName
- table callable is onscan
- the scan to executescanMetrics
- the ScanMetrics to used, if it is null, ScannerCallable won't collect
metricsrpcFactory
- to create an RpcController
to talk to the
regionserverreplicaId
- the replica idpublic void throwable(Throwable t, boolean retrying)
RetryingCallable
throwable
in interface RetryingCallable<Result[]>
throwable
in class RegionServerCallable<Result[],org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
t
- throwable which was thrownretrying
- True if we are in retrying mode (we are not in retrying mode when max retries
== 1; we ARE in retrying mode if retries > 1 even when we are the last
attempt)public void prepare(boolean reload) throws IOException
RetryingCallable
prepare
in interface RetryingCallable<Result[]>
prepare
in class ScannerCallable
reload
- force reload of server locationIOException
- eprivate Pair<HRegionLocation,byte[]> locateLastRegionInRange(byte[] startKey, byte[] endKey) throws IOException
startKey
- Starting row in range, inclusiveendKey
- Ending row in range, exclusiveIOException
public ScannerCallable getScannerCallableForReplica(int id)
getScannerCallableForReplica
in class ScannerCallable
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.