public interface AdminMask extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addColumn(String tableName,
org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor) |
void |
clearTable(String tableName,
long timestamp) |
void |
createTable(org.apache.hadoop.hbase.HTableDescriptor desc) |
void |
createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[] startKey,
byte[] endKey,
int numRegions) |
void |
deleteSnapshot(String snapshotName) |
void |
disableTable(String tableName) |
void |
dropTable(String tableName)
Drop given table.
|
void |
enableTable(String tableName) |
int |
getEstimatedRegionServerCount()
Estimate the number of regionservers in the HBase cluster.
|
org.apache.hadoop.hbase.HTableDescriptor |
getTableDescriptor(String tableName) |
boolean |
isTableDisabled(String tableName) |
void |
snapshot(String snapshotName,
String table) |
boolean |
tableExists(String tableName) |
void clearTable(String tableName, long timestamp) throws IOException
IOException
void dropTable(String tableName) throws IOException
tableName
- Name of the table to deleteIOException
org.apache.hadoop.hbase.HTableDescriptor getTableDescriptor(String tableName) throws IOException
IOException
boolean tableExists(String tableName) throws IOException
IOException
void createTable(org.apache.hadoop.hbase.HTableDescriptor desc) throws IOException
IOException
void createTable(org.apache.hadoop.hbase.HTableDescriptor desc, byte[] startKey, byte[] endKey, int numRegions) throws IOException
IOException
int getEstimatedRegionServerCount()
Admin.getClusterStatus()
and then
ClusterStatus.getServers()
and finally size()
on the
returned server list.void disableTable(String tableName) throws IOException
IOException
void enableTable(String tableName) throws IOException
IOException
boolean isTableDisabled(String tableName) throws IOException
IOException
void addColumn(String tableName, org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor) throws IOException
IOException
void snapshot(String snapshotName, String table) throws IllegalArgumentException, IOException
IllegalArgumentException
IOException
void deleteSnapshot(String snapshotName) throws IOException
IOException
Copyright © 2012–2020. All rights reserved.