Package org.apache.hadoop.hbase.client
Class HBaseAdmin.TableFuture<V>
java.lang.Object
org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture<V>
org.apache.hadoop.hbase.client.HBaseAdmin.TableFuture<V>
- All Implemented Interfaces:
Future<V>
- Direct Known Subclasses:
HBaseAdmin.CreateTableFuture
,HBaseAdmin.DeleteTableFuture
,HBaseAdmin.DisableTableFuture
,HBaseAdmin.EnableTableFuture
,HBaseAdmin.FlushTableFuture
,HBaseAdmin.LegacyFlushFuture
,HBaseAdmin.MergeTableRegionsFuture
,HBaseAdmin.ModifyTableFuture
,HBaseAdmin.RestoreSnapshotFuture
,HBaseAdmin.SnapshotFuture
,HBaseAdmin.SplitTableRegionFuture
,HBaseAdmin.TruncateRegionFuture
,HBaseAdmin.TruncateTableFuture
- Enclosing class:
- HBaseAdmin
@Private
@Evolving
protected abstract static class HBaseAdmin.TableFuture<V>
extends HBaseAdmin.ProcedureFuture<V>
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected class
Nested 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
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
Returns a description of the operationabstract String
Returns the operation type like CREATE, DELETE, DISABLE etc.protected TableDescriptor
Returns the table descriptorprotected TableName
Returns the table nameprotected V
postOperationFailure
(IOException exception, long deadlineTs) Called after the operation is terminated with a failure.protected V
postOperationResult
(V result, long deadlineTs) Called after the operation is completed and the result fetched.toString()
protected void
waitForAllRegionsOnline
(long deadlineTs, byte[][] splitKeys) protected void
waitForSchemaUpdate
(long deadlineTs) protected void
waitForTableDisabled
(long deadlineTs) protected void
waitForTableEnabled
(long deadlineTs) protected void
waitTableNotFound
(long deadlineTs) Methods inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture
abortProcedureResult, cancel, convertResult, get, get, getAdmin, getProcedureResult, isCancelled, isDone, waitForState, waitOperationResult
-
Field Details
-
tableName
-
-
Constructor Details
-
TableFuture
-
-
Method Details
-
toString
-
getTableName
Returns the table name -
getTableDescriptor
Returns the table descriptor- Throws:
IOException
-
getOperationType
Returns the operation type like CREATE, DELETE, DISABLE etc. -
getDescription
Returns a description of the operation -
postOperationResult
Description copied from class:HBaseAdmin.ProcedureFuture
Called 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:
postOperationResult
in classHBaseAdmin.ProcedureFuture<V>
- 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:
IOException
TimeoutException
-
postOperationFailure
protected V postOperationFailure(IOException exception, long deadlineTs) throws IOException, TimeoutException Description copied from class:HBaseAdmin.ProcedureFuture
Called after the operation is terminated with a failure. this allows to perform extra steps after the procedure is terminated. it allows to apply transformations to the result that will be returned by get(). The default implementation will rethrow the exception- Overrides:
postOperationFailure
in classHBaseAdmin.ProcedureFuture<V>
- Parameters:
exception
- the exception got from fetching the resultdeadlineTs
- 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:
IOException
TimeoutException
-
waitForTableEnabled
- Throws:
IOException
TimeoutException
-
waitForTableDisabled
- Throws:
IOException
TimeoutException
-
waitTableNotFound
- Throws:
IOException
TimeoutException
-
waitForSchemaUpdate
- Throws:
IOException
TimeoutException
-
waitForAllRegionsOnline
protected void waitForAllRegionsOnline(long deadlineTs, byte[][] splitKeys) throws IOException, TimeoutException - Throws:
IOException
TimeoutException
-