|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.client.HBaseAdmin
org.apache.hadoop.hbase.client.tableindexed.IndexedTableAdmin
public class IndexedTableAdmin
Extension of HBaseAdmin that creates indexed tables.
Constructor Summary | |
---|---|
IndexedTableAdmin(HBaseConfiguration conf)
Constructor |
Method Summary | |
---|---|
void |
addIndex(byte[] baseTableName,
IndexSpecification indexSpec)
Add an index to a table. |
void |
createTable(HTableDescriptor desc)
Creates a new table |
void |
removeIndex(byte[] baseTableName,
String indexId)
Remove an index for a table. |
Methods inherited from class org.apache.hadoop.hbase.client.HBaseAdmin |
---|
addColumn, addColumn, checkHBaseAvailable, closeRegion, closeRegion, compact, compact, createTableAsync, deleteColumn, deleteColumn, deleteTable, deleteTable, disableTable, disableTable, enableTable, enableTable, flush, flush, getMaster, getTableDescriptor, getTableDescriptor, isMasterRunning, isTableDisabled, isTableEnabled, isTableEnabled, listTables, majorCompact, majorCompact, modifyColumn, modifyColumn, modifyTable, modifyTable, shutdown, split, split, tableExists, tableExists |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IndexedTableAdmin(HBaseConfiguration conf) throws MasterNotRunningException
conf
- Configuration object
MasterNotRunningException
Method Detail |
---|
public void createTable(HTableDescriptor desc) throws IOException
createTable
in class HBaseAdmin
desc
- table descriptor for table
IllegalArgumentException
- if the table name is reserved
MasterNotRunningException
- if master is not running
TableExistsException
- if table already exists (If concurrent
threads, the table may have been created between test-for-existence and
attempt-at-creation).
IOException
public void removeIndex(byte[] baseTableName, String indexId) throws IOException
IOException
public void addIndex(byte[] baseTableName, IndexSpecification indexSpec) throws IOException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |