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 SummaryFieldsFields inherited from class org.apache.hadoop.hbase.client.RegionServerCallablelocation, requestAttributes, rpcController, stub
- 
Constructor SummaryConstructorsConstructorDescriptionMultiServerCallable(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 SummaryModifier 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.CancellableRegionServerCallablecall, cancel, doBulkLoadHFile, doCleanupBulkLoad, doMulti, doPrepareBulkLoad, doScan, getTracker, isCancelled, setStubByServiceNameMethods inherited from class org.apache.hadoop.hbase.client.ClientServiceCallabledoGet, doMutateMethods inherited from class org.apache.hadoop.hbase.client.RegionServerCallablegetConnection, getExceptionMessageAdditionalDetail, getPriority, getRow, getRpcController, getRpcControllerCellScanner, getStub, getTableName, setLocation, setRpcControllerCellScanner, setStub, sleep, throwable
- 
Field Details- 
multiAction
- 
cellBlock
 
- 
- 
Constructor Details- 
MultiServerCallableMultiServerCallable(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 class- RegionServerCallable<MultiResponse,- org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface> 
 
- 
getHRegionInfoDescription copied from class:RegionServerCallableReturns the HRegionInfo for the current region- Overrides:
- getHRegionInfoin class- RegionServerCallable<MultiResponse,- org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ClientService.BlockingInterface> 
 
- 
getMulti
- 
rpcCallDescription 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 class- RegionServerCallable<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.
 
- 
prepareDescription 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 interface- RetryingCallable<MultiResponse>
- Overrides:
- preparein class- CancellableRegionServerCallable<MultiResponse>
- Parameters:
- reload- Set this to true if need to requery locations
- Throws:
- IOException- e
 
- 
getServerName
 
-