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
FieldsFields inherited from class org.apache.hadoop.hbase.client.RegionServerCallable
location, requestAttributes, rpcController, stub -
Constructor Summary
ConstructorsConstructorDescriptionMultiServerCallable(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) MultiActiongetMulti()(package private) ServerNameprivate booleanvoidprepare(boolean reload) Prepare by setting up any connections to servers, etc., ahead of call invocation.voidreset(ServerName location, MultiAction multiAction) protected MultiResponserpcCall()Run the RPC call.Methods inherited from class org.apache.hadoop.hbase.client.CancellableRegionServerCallable
call, cancel, doBulkLoadHFile, doCleanupBulkLoad, doMulti, doPrepareBulkLoad, doScan, getTracker, isCancelled, setStubByServiceNameMethods inherited from class org.apache.hadoop.hbase.client.ClientServiceCallable
doGet, doMutateMethods 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:
getLocationin classRegionServerCallable<MultiResponse,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
-
getHRegionInfo
Description copied from class:RegionServerCallableReturns the HRegionInfo for the current region- Overrides:
getHRegionInfoin classRegionServerCallable<MultiResponse,org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface>
-
getMulti
-
rpcCall
Description copied from class:RegionServerCallableRun 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:
rpcCallin 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:RetryingCallablePrepare by setting up any connections to servers, etc., ahead of call invocation. TODO: We call prepare before EVERY call. Seems wrong. FIX!!!!- Specified by:
preparein interfaceRetryingCallable<MultiResponse>- Overrides:
preparein classCancellableRegionServerCallable<MultiResponse>- Parameters:
reload- Set this to true if need to requery locations- Throws:
IOException- e
-
getServerName
-