Package org.apache.hadoop.hbase.client
Class MultiServerCallable
java.lang.Object
org.apache.hadoop.hbase.client.RegionServerCallable<T,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
org.apache.hadoop.hbase.client.ClientServiceCallable<T>
org.apache.hadoop.hbase.client.CancellableRegionServerCallable<MultiResponse>
org.apache.hadoop.hbase.client.MultiServerCallable
- All Implemented Interfaces:
Cancellable
,RetryingCallable<MultiResponse>
Callable that handles the
multi
method call going against a single regionserver;
i.e. A RegionServerCallable for the multi call (It is NOT a RegionServerCallable that goes
against multiple regions).-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.RegionServerCallable
location, requestAttributes, rpcController, stub
-
Constructor Summary
ConstructorDescriptionMultiServerCallable
(ClusterConnection connection, TableName tableName, ServerName location, MultiAction multi, org.apache.hbase.thirdparty.com.google.protobuf.RpcController rpcController, int rpcTimeout, RetryingTimeTracker tracker, int priority, Map<String, byte[]> requestAttributes) -
Method Summary
Modifier and TypeMethodDescriptionReturns the HRegionInfo for the current regionprotected HRegionLocation
(package private) MultiAction
getMulti()
(package private) ServerName
private boolean
void
prepare
(boolean reload) Prepare by setting up any connections to servers, etc., ahead of call invocation.void
reset
(ServerName location, MultiAction multiAction) protected MultiResponse
rpcCall()
Run the RPC call.Methods inherited from class org.apache.hadoop.hbase.client.CancellableRegionServerCallable
call, cancel, doBulkLoadHFile, doCleanupBulkLoad, doMulti, doPrepareBulkLoad, doScan, getTracker, isCancelled, setStubByServiceName
Methods inherited from class org.apache.hadoop.hbase.client.ClientServiceCallable
doGet, doMutate
Methods inherited from class org.apache.hadoop.hbase.client.RegionServerCallable
getConnection, getExceptionMessageAdditionalDetail, getPriority, getRow, getRpcController, getRpcControllerCellScanner, getStub, getTableName, setLocation, setRpcControllerCellScanner, setStub, sleep, throwable
-
Field Details
-
multiAction
-
cellBlock
-
-
Constructor Details
-
MultiServerCallable
MultiServerCallable(ClusterConnection connection, TableName tableName, ServerName location, MultiAction multi, org.apache.hbase.thirdparty.com.google.protobuf.RpcController rpcController, int rpcTimeout, RetryingTimeTracker tracker, int priority, Map<String, byte[]> requestAttributes)
-
-
Method Details
-
reset
-
getLocation
- Overrides:
getLocation
in classRegionServerCallable<MultiResponse,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
-
getHRegionInfo
Description copied from class:RegionServerCallable
Returns the HRegionInfo for the current region- Overrides:
getHRegionInfo
in classRegionServerCallable<MultiResponse,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
-
getMulti
-
rpcCall
Description copied from class:RegionServerCallable
Run the RPC call. Implement this method. To get at the rpcController that has been created and configured to make this rpc call, use getRpcController(). We are trying to contain rpcController references so we don't pollute codebase with protobuf references; keep the protobuf references contained and only present in a few classes rather than all about the code base.- Specified by:
rpcCall
in classRegionServerCallable<MultiResponse,
org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface> - Throws:
Exception
-
isCellBlock
- Returns:
- True if we should send data in cellblocks. This is an expensive call. Cache the result if you can rather than call each time.
-
prepare
Description copied from interface:RetryingCallable
Prepare by setting up any connections to servers, etc., ahead of call invocation. TODO: We call prepare before EVERY call. Seems wrong. FIX!!!!- Specified by:
prepare
in interfaceRetryingCallable<MultiResponse>
- Overrides:
prepare
in classCancellableRegionServerCallable<MultiResponse>
- Parameters:
reload
- Set this to true if need to requery locations- Throws:
IOException
- e
-
getServerName
-