@InternalApi(value="For internal usage only") public abstract class BigtableAdmin extends AbstractBigtableAdmin
AbstractBigtableAdmin.
For internal use only - public for technical reasons.
AbstractBigtableAdmin.UnsupportedOperationsHandleradminClientWrapper, connection, LOG| Constructor and Description |
|---|
BigtableAdmin(AbstractBigtableConnection connection) |
abort, addColumn, addColumn, assign, balancer, cloneSnapshot, cloneSnapshot, cloneSnapshot, close, closeRegion, closeRegion, closeRegion, closeRegionWithEncodedRegionName, compact, compact, compactRegion, compactRegion, compactRegionServer, convertToTableExistsException, coprocessorService, coprocessorService, createNamespace, createSplitKeys, createTable, createTable, createTable, createTable, createTableAsync, createTableAsync, deleteColumn, deleteColumn, deleteColumn, deleteNamespace, deleteRowRangeByPrefix, deleteSnapshot, deleteSnapshot, deleteSnapshots, deleteSnapshots, deleteTable, deleteTables, deleteTables, deleteTableSnapshots, deleteTableSnapshots, disableTable, disableTable, disableTables, disableTables, enableCatalogJanitor, enableTable, enableTable, enableTables, enableTables, execProcedure, execProcedureWithRet, flush, flushRegion, getAlterStatus, getAlterStatus, getAlterStatus, getBackupClusterId, getConfiguration, getConnection, getMasterCoprocessors, getMasterInfoPort, getNamespaceDescriptor, getOnlineRegions, getOperationTimeout, getTableDescriptor, getTableDescriptors, getTableDescriptorsByTableName, getTableNames, getTableRegions, isAborted, isCatalogJanitorEnabled, isProcedureFinished, isTableAvailable, isTableAvailable, isTableDisabled, isTableDisabled, isTableEnabled, isTableEnabled, listNamespaceDescriptors, listTableDescriptorsByNamespace, listTableNames, listTableNames, listTableNames, listTableNames, listTableNames, listTableNamesByNamespace, listTables, listTables, listTables, listTables, listTables, majorCompact, majorCompact, majorCompactRegion, majorCompactRegion, mergeRegions, modifyColumn, modifyColumns, modifyColumns, modifyNamespace, modifyTable, move, offline, restoreSnapshot, restoreSnapshot, restoreSnapshot, restoreSnapshot, rollWALWriter, runCatalogScan, setBalancerRunning, shutdown, snapshot, snapshot, snapshot, snapshotTable, split, split, splitRegion, splitRegion, stopMaster, stopRegionServer, tableExists, tableExists, toString, truncateTable, unassign, updateConfiguration, updateConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitabortProcedure, abortProcedureAsync, addColumn, addReplicationPeer, addReplicationPeer, addReplicationPeerAsync, addReplicationPeerAsync, appendReplicationPeerTableCFs, balance, balance, balancer, balancerSwitch, catalogJanitorSwitch, cleanerChoreSwitch, clearBlockCache, clearCompactionQueues, clearDeadServers, clearSlowLogResponses, cloneSnapshot, cloneSnapshotAsync, cloneSnapshotAsync, cloneTableSchema, compact, compact, compactionSwitch, compactRegionServer, createNamespaceAsync, decommissionRegionServers, disableReplicationPeer, disableReplicationPeerAsync, disableTableReplication, enableReplicationPeer, enableReplicationPeerAsync, enableTableReplication, exceedThrottleQuotaSwitch, execProcedureWithReturn, flushRegionServer, getBackupMasters, getClusterMetrics, getCompactionState, getCompactionState, getCompactionStateForRegion, getCurrentSpaceQuotaSnapshot, getCurrentSpaceQuotaSnapshot, getLastMajorCompactionTimestamp, getLastMajorCompactionTimestampForRegion, getLocks, getMaster, getMasterCoprocessorNames, getProcedures, getQuota, getQuotaRetriever, getRegionMetrics, getRegionMetrics, getRegions, getRegionServers, getRegionServers, getRegionServerSpaceQuotaSnapshots, getReplicationPeerConfig, getSecurityCapabilities, getSlowLogResponses, getSpaceQuotaTableSizes, getSyncWaitTimeout, getUserPermissions, grant, hasUserPermissions, hasUserPermissions, isBalancerEnabled, isCleanerChoreEnabled, isMasterInMaintenanceMode, isMergeEnabled, isNormalizerEnabled, isRpcThrottleEnabled, isSnapshotCleanupEnabled, isSnapshotFinished, isSplitEnabled, isSplitOrMergeEnabled, listDeadServers, listDecommissionedRegionServers, listNamespaces, listReplicatedTableCFs, listReplicationPeers, listReplicationPeers, listTableSnapshots, listTableSnapshots, majorCompact, majorCompact, majorCompactRegionServer, mergeRegionsAsync, mergeRegionsAsync, mergeSwitch, modifyColumn, modifyNamespaceAsync, move, move, normalize, normalizerSwitch, recommissionRegionServer, removeReplicationPeer, removeReplicationPeerAsync, removeReplicationPeerTableCFs, restoreSnapshot, restoreSnapshotAsync, revoke, runCatalogJanitor, runCleanerChore, setCleanerChoreRunning, setNormalizerRunning, setQuota, setSplitOrMergeEnabled, snapshot, snapshot, snapshotAsync, snapshotCleanupSwitch, splitRegionAsync, splitRegionAsync, splitSwitch, switchRpcThrottle, takeSnapshotAsync, updateReplicationPeerConfig, updateReplicationPeerConfigAsyncpublic BigtableAdmin(AbstractBigtableConnection connection) throws IOException
IOExceptionpublic void createTable(TableDescriptor desc) throws IOException
IOExceptionpublic void createTable(TableDescriptor desc, byte[] startKey, byte[] endKey, int numRegions) throws IOException
IOExceptionpublic void createTable(TableDescriptor desc, byte[][] splitKeys) throws IOException
IOExceptionpublic Future<Void> createTableAsync(TableDescriptor tableDescriptor) throws IOException
IOExceptionpublic Future<Void> createTableAsync(TableDescriptor desc, byte[][] splitKeys) throws IOException
IOExceptionpublic List<SnapshotDescription> listSnapshots(String regex) throws IOException
IOExceptionpublic List<SnapshotDescription> listSnapshots(Pattern pattern) throws IOException
IOExceptionpublic List<SnapshotDescription> listSnapshots() throws IOException
IOExceptionpublic void addColumnFamily(TableName tableName, ColumnFamilyDescriptor columnFamilyDesc) throws IOException
Calling Admin.addColumn(TableName, ColumnFamilyDescriptor) was causing stackoverflow.
Copying the same code here. //TODO - need to find a better way
IOExceptionpublic void modifyColumnFamily(TableName tableName, ColumnFamilyDescriptor columnFamilyDesc) throws IOException
Calling Admin.addColumn(TableName, ColumnFamilyDescriptor) was causing stackoverflow.
Copying the same code here. //TODO - need to find a better way
IOExceptionpublic Future<Void> deleteNamespaceAsync(String name) throws IOException
IOExceptionpublic Future<Void> disableTableAsync(TableName tableName) throws IOException
IOExceptionpublic Future<Void> enableTableAsync(TableName tableName) throws IOException
IOExceptionpublic TableDescriptor getDescriptor(TableName tableName) throws IOException
IOExceptionpublic void snapshot(SnapshotDescription snapshot) throws IOException, SnapshotCreationException, IllegalArgumentException
public void snapshot(String snapshotId, TableName tableName, SnapshotType ignored) throws IOException, SnapshotCreationException, IllegalArgumentException
public Future<Void> addColumnFamilyAsync(TableName tableName, ColumnFamilyDescriptor columnFamily)
public void deleteColumnFamily(TableName tableName, byte[] columnName) throws IOException
IOExceptionpublic Future<Void> deleteColumnFamilyAsync(TableName tableName, byte[] columnName)
protected CompletableFuture<Void> deleteTableAsyncInternal(TableName tableName)
public Future<Void> deleteTableAsync(TableName tableName) throws IOException
IOExceptionpublic List<TableDescriptor> listTableDescriptors() throws IOException
IOExceptionpublic List<TableDescriptor> listTableDescriptors(Pattern pattern) throws IOException
IOExceptionpublic List<TableDescriptor> listTableDescriptors(List<TableName> tableNames) throws IOException
IOExceptionpublic List<TableDescriptor> listTableDescriptors(Pattern pattern, boolean includeSysTables) throws IOException
IOExceptionpublic List<TableDescriptor> listTableDescriptorsByNamespace(byte[] namespace) throws IOException
IOExceptionpublic Future<Void> modifyColumnFamilyAsync(TableName tableName, ColumnFamilyDescriptor columnFamily) throws IOException
IOExceptionpublic void modifyTable(TableDescriptor tableDescriptor) throws IOException
IOExceptionpublic void modifyTable(TableName tableName, TableDescriptor tableDescriptor) throws IOException
IOExceptionpublic Future<Void> modifyTableAsync(TableDescriptor tableDescriptor) throws IOException
IOExceptionpublic Future<Void> modifyTableAsync(TableName tableName, TableDescriptor newDescriptor)
public Future<Void> truncateTableAsync(TableName tableName, boolean preserveSplits) throws IOException
IOExceptionpublic List<RegionInfo> getRegions(TableName tableName) throws IOException
IOExceptionpublic ClusterMetrics getClusterMetrics(EnumSet<ClusterMetrics.Option> arg0) throws IOException
IOExceptionpublic ClusterStatus getClusterStatus() throws IOException
IOExceptionprotected void snapshotAsyncVoid(SnapshotDescription snapshot) throws IOException, SnapshotCreationException
getSubclass() will generate the code to call the correct snapshotAsync method based on the
hbase version.IOExceptionSnapshotCreationExceptionprotected Future<Void> snapshotAsyncFuture(SnapshotDescription snapshot) throws IOException, SnapshotCreationException
getSubclass() will generate the code to call the correct snapshotAsync method based on the
hbase version.IOExceptionSnapshotCreationExceptionpublic static BigtableAdmin createInstance(AbstractBigtableConnection connection) throws IOException
IOException