public class MEnginePartitionAdmin extends java.lang.Object implements PartitionAdmin
Constructor and Description |
---|
MEnginePartitionAdmin(PartitionAdmin admin) |
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<? extends Partition> |
allPartitions(java.lang.String tableName) |
java.util.Collection<PartitionServer> |
allServers() |
void |
assign(Partition partition) |
void |
close() |
void |
closeRegion(Partition partition) |
void |
deleteSnapshot(java.lang.String snapshotName) |
void |
deleteTable(java.lang.String tableName) |
void |
disableTable(java.lang.String tableName) |
void |
enableTable(java.lang.String tableName) |
TableDescriptor |
getTableDescriptor(java.lang.String table) |
TableDescriptor[] |
getTableDescriptors(java.util.List<java.lang.String> tables) |
java.util.List<byte[]> |
hbaseOperation(java.lang.String table,
java.lang.String operation,
byte[] bytes) |
java.lang.Iterable<TableDescriptor> |
listTables() |
void |
markDropped(long conglomId,
long txn) |
void |
mergeRegions(java.lang.String regionName1,
java.lang.String regionName2) |
void |
move(java.lang.String partition,
java.lang.String server) |
PartitionCreator |
newPartition() |
void |
restoreSnapshot(java.lang.String snapshotName) |
void |
snapshot(java.lang.String snapshotName,
java.lang.String tableName) |
void |
splitRegion(byte[] regionName,
byte[]... splitPoints) |
void |
splitTable(java.lang.String tableName,
byte[]... splitPoints) |
boolean |
tableExists(java.lang.String tableName) |
public MEnginePartitionAdmin(PartitionAdmin admin)
public PartitionCreator newPartition() throws java.io.IOException
newPartition
in interface PartitionAdmin
java.io.IOException
public void deleteTable(java.lang.String tableName) throws java.io.IOException
deleteTable
in interface PartitionAdmin
java.io.IOException
public void splitTable(java.lang.String tableName, byte[]... splitPoints) throws java.io.IOException
splitTable
in interface PartitionAdmin
java.io.IOException
public void splitRegion(byte[] regionName, byte[]... splitPoints) throws java.io.IOException
splitRegion
in interface PartitionAdmin
java.io.IOException
public void mergeRegions(java.lang.String regionName1, java.lang.String regionName2) throws java.io.IOException
mergeRegions
in interface PartitionAdmin
java.io.IOException
public void close() throws java.io.IOException
close
in interface PartitionAdmin
close
in interface java.lang.AutoCloseable
java.io.IOException
public java.util.Collection<PartitionServer> allServers() throws java.io.IOException
allServers
in interface PartitionAdmin
java.io.IOException
public java.lang.Iterable<? extends Partition> allPartitions(java.lang.String tableName) throws java.io.IOException
allPartitions
in interface PartitionAdmin
java.io.IOException
public TableDescriptor[] getTableDescriptors(java.util.List<java.lang.String> tables) throws java.io.IOException
getTableDescriptors
in interface PartitionAdmin
java.io.IOException
public java.lang.Iterable<TableDescriptor> listTables() throws java.io.IOException
listTables
in interface PartitionAdmin
java.io.IOException
public void move(java.lang.String partition, java.lang.String server) throws java.io.IOException
move
in interface PartitionAdmin
java.io.IOException
public TableDescriptor getTableDescriptor(java.lang.String table) throws java.io.IOException
getTableDescriptor
in interface PartitionAdmin
java.io.IOException
public void snapshot(java.lang.String snapshotName, java.lang.String tableName) throws java.io.IOException
snapshot
in interface PartitionAdmin
java.io.IOException
public void deleteSnapshot(java.lang.String snapshotName) throws java.io.IOException
deleteSnapshot
in interface PartitionAdmin
java.io.IOException
public void restoreSnapshot(java.lang.String snapshotName) throws java.io.IOException
restoreSnapshot
in interface PartitionAdmin
java.io.IOException
public void disableTable(java.lang.String tableName) throws java.io.IOException
disableTable
in interface PartitionAdmin
java.io.IOException
public void enableTable(java.lang.String tableName) throws java.io.IOException
enableTable
in interface PartitionAdmin
java.io.IOException
public void closeRegion(Partition partition) throws java.io.IOException, java.lang.InterruptedException
closeRegion
in interface PartitionAdmin
java.io.IOException
java.lang.InterruptedException
public void assign(Partition partition) throws java.io.IOException, java.lang.InterruptedException
assign
in interface PartitionAdmin
java.io.IOException
java.lang.InterruptedException
public boolean tableExists(java.lang.String tableName) throws java.io.IOException
tableExists
in interface PartitionAdmin
java.io.IOException
public java.util.List<byte[]> hbaseOperation(java.lang.String table, java.lang.String operation, byte[] bytes) throws java.io.IOException
hbaseOperation
in interface PartitionAdmin
java.io.IOException
public void markDropped(long conglomId, long txn) throws java.io.IOException
markDropped
in interface PartitionAdmin
java.io.IOException