Package org.apache.hadoop.hbase.client
Class HBaseAdmin.CreateTableFuture
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.CreateTableFuture
- Enclosing class:
- HBaseAdmin
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.TableFuture
HBaseAdmin.TableFuture.TableWaitForStateCallable
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
ConstructorDescriptionCreateTableFuture
(HBaseAdmin admin, TableDescriptor desc, byte[][] splitKeys, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateTableResponse response) -
Method Summary
Modifier and TypeMethodDescriptionReturns the operation type like CREATE, DELETE, DISABLE etc.protected TableDescriptor
Returns the table descriptorprotected Void
waitOperationResult
(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, getTableName, postOperationFailure, postOperationResult, toString, waitForAllRegionsOnline, waitForSchemaUpdate, waitForTableDisabled, waitForTableEnabled, waitTableNotFound
Methods inherited from class org.apache.hadoop.hbase.client.HBaseAdmin.ProcedureFuture
abortProcedureResult, cancel, convertResult, get, get, getAdmin, getProcedureResult, isCancelled, isDone, waitForState
-
Field Details
-
desc
-
splitKeys
-
-
Constructor Details
-
CreateTableFuture
public CreateTableFuture(HBaseAdmin admin, TableDescriptor desc, byte[][] splitKeys, org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.CreateTableResponse response)
-
-
Method Details
-
getTableDescriptor
Description copied from class:HBaseAdmin.TableFuture
Returns the table descriptor- Overrides:
getTableDescriptor
in classHBaseAdmin.TableFuture<Void>
-
getOperationType
Description copied from class:HBaseAdmin.TableFuture
Returns the operation type like CREATE, DELETE, DISABLE etc.- Specified by:
getOperationType
in classHBaseAdmin.TableFuture<Void>
-
waitOperationResult
Description copied from class:HBaseAdmin.ProcedureFuture
Fallback implementation in case the procedure is not supported by the server. It should try to wait until the operation is completed.- Overrides:
waitOperationResult
in classHBaseAdmin.ProcedureFuture<Void>
- Parameters:
deadlineTs
- the timestamp after which this method should throw a TimeoutException- Returns:
- the result data of the operation
- Throws:
IOException
TimeoutException
-