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
IOExceptionvoid dropTable(String tableName) throws IOException
tableName - Name of the table to deleteIOExceptionorg.apache.hadoop.hbase.HTableDescriptor getTableDescriptor(String tableName) throws IOException
IOExceptionboolean tableExists(String tableName) throws IOException
IOExceptionvoid createTable(org.apache.hadoop.hbase.HTableDescriptor desc)
throws IOException
IOExceptionvoid createTable(org.apache.hadoop.hbase.HTableDescriptor desc,
byte[] startKey,
byte[] endKey,
int numRegions)
throws IOException
IOExceptionint getEstimatedRegionServerCount()
Admin.getClusterStatus() and then
ClusterStatus.getServers() and finally size() on the
returned server list.void disableTable(String tableName) throws IOException
IOExceptionvoid enableTable(String tableName) throws IOException
IOExceptionboolean isTableDisabled(String tableName) throws IOException
IOExceptionvoid addColumn(String tableName, org.apache.hadoop.hbase.HColumnDescriptor columnDescriptor) throws IOException
IOExceptionvoid snapshot(String snapshotName, String table) throws IllegalArgumentException, IOException
IllegalArgumentExceptionIOExceptionvoid deleteSnapshot(String snapshotName) throws IOException
IOExceptionCopyright © 2012–2020. All rights reserved.