Package org.apache.hadoop.hbase.client
Class HBaseAdmin.DeleteTableFuture
java.lang.Object
org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture<V>
org.apache.hadoop.hbase.client.HBaseAdmin.TableFuture<Void>
org.apache.hadoop.hbase.client.HBaseAdmin.DeleteTableFuture
- Enclosing class:
- HBaseAdmin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.TableFuture
HBaseAdmin.TableFuture.TableWaitForStateCallableNested classes/interfaces inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture
HBaseAdmin.ProcedureFuture.WaitForStateCallable -
Field Summary
Fields inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture
procId -
Constructor Summary
ConstructorsConstructorDescriptionDeleteTableFuture(HBaseAdmin admin, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteTableResponse response) -
Method Summary
Modifier and TypeMethodDescriptionReturns the operation type like CREATE, DELETE, DISABLE etc.protected VoidpostOperationResult(Void result, long deadlineTs) Called after the operation is completed and the result fetched.protected VoidwaitOperationResult(long deadlineTs) Fallback implementation in case the procedure is not supported by the server.Methods inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.TableFuture
getDescription, getTableDescriptor, getTableName, postOperationFailure, toString, waitForAllRegionsOnline, waitForSchemaUpdate, waitForTableDisabled, waitForTableEnabled, waitTableNotFoundMethods inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture
abortProcedureResult, cancel, convertResult, get, get, getAdmin, getProcedureResult, isCancelled, isDone, waitForState
-
Constructor Details
-
DeleteTableFuture
public DeleteTableFuture(HBaseAdmin admin, TableName tableName, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.DeleteTableResponse response)
-
-
Method Details
-
getOperationType
Description copied from class:HBaseAdmin.TableFutureReturns the operation type like CREATE, DELETE, DISABLE etc.- Specified by:
getOperationTypein classHBaseAdmin.TableFuture<Void>
-
waitOperationResult
Description copied from class:HBaseAdmin.ProcedureFutureFallback implementation in case the procedure is not supported by the server. It should try to wait until the operation is completed.- Overrides:
waitOperationResultin classHBaseAdmin.ProcedureFuture<Void>- Parameters:
deadlineTs- the timestamp after which this method should throw a TimeoutException- Returns:
- the result data of the operation
- Throws:
IOExceptionTimeoutException
-
postOperationResult
protected Void postOperationResult(Void result, long deadlineTs) throws IOException, TimeoutException Description copied from class:HBaseAdmin.ProcedureFutureCalled after the operation is completed and the result fetched. this allows to perform extra steps after the procedure is completed. it allows to apply transformations to the result that will be returned by get().- Overrides:
postOperationResultin classHBaseAdmin.TableFuture<Void>- Parameters:
result- the result of the proceduredeadlineTs- the timestamp after which this method should throw a TimeoutException- Returns:
- the result of the procedure, which may be the same as the passed one
- Throws:
IOExceptionTimeoutException
-