Package org.apache.hadoop.hbase.client
Class AsyncProcessTask<T>
java.lang.Object
org.apache.hadoop.hbase.client.AsyncProcessTask<T>
- Type Parameters:
T
- The type of response from server-side
Contains the attributes of a task which will be executed by
AsyncProcess
. The attributes will be validated by
AsyncProcess. It's intended for advanced client applications.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
(package private) static class
static enum
The number of processed rows. -
Field Summary
Modifier and TypeFieldDescriptionprivate final CancellableRegionServerCallable
private final Batch.Callback<T>
private final boolean
private final int
private final ExecutorService
private final Object[]
private final int
private final AsyncProcessTask.SubmittedRows
private final TableName
-
Constructor Summary
ConstructorDescriptionAsyncProcessTask
(ExecutorService pool, TableName tableName, RowAccess<? extends Row> rows, AsyncProcessTask.SubmittedRows size, Batch.Callback<T> callback, CancellableRegionServerCallable callable, boolean needResults, int rpcTimeout, int operationTimeout, Object[] results, Map<String, byte[]> requestAttributes) AsyncProcessTask
(AsyncProcessTask<T> task) -
Method Summary
Modifier and TypeMethodDescription(package private) CancellableRegionServerCallable
boolean
int
getPool()
(package private) Object[]
int
static AsyncProcessTask.Builder
static <T> AsyncProcessTask.Builder<T>
newBuilder
(Batch.Callback<T> callback)
-
Field Details
-
pool
-
tableName
-
rows
-
submittedRows
-
callback
-
callable
-
needResults
-
rpcTimeout
-
operationTimeout
-
results
-
requestAttributes
-
-
Constructor Details
-
AsyncProcessTask
AsyncProcessTask(AsyncProcessTask<T> task) -
AsyncProcessTask
AsyncProcessTask(ExecutorService pool, TableName tableName, RowAccess<? extends Row> rows, AsyncProcessTask.SubmittedRows size, Batch.Callback<T> callback, CancellableRegionServerCallable callable, boolean needResults, int rpcTimeout, int operationTimeout, Object[] results, Map<String, byte[]> requestAttributes)
-
-
Method Details
-
newBuilder
-
newBuilder
-
getOperationTimeout
-
getPool
-
getTableName
-
getRowAccess
-
getSubmittedRows
-
getCallback
-
getCallable
-
getRequestAttributes
-
getResults
Object[] getResults() -
getNeedResults
-
getRpcTimeout
-