org.apache.hadoop.hbase.client.tableindexed
Class IndexedTableAdmin

java.lang.Object
  extended by org.apache.hadoop.hbase.client.HBaseAdmin
      extended by org.apache.hadoop.hbase.client.tableindexed.IndexedTableAdmin

public class IndexedTableAdmin
extends HBaseAdmin

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

IndexedTableAdmin

public IndexedTableAdmin(HBaseConfiguration conf)
                  throws MasterNotRunningException
Constructor

Parameters:
conf - Configuration object
Throws:
MasterNotRunningException
Method Detail

createTable

public void createTable(HTableDescriptor desc)
                 throws IOException
Creates a new table

Overrides:
createTable in class HBaseAdmin
Parameters:
desc - table descriptor for table
Throws:
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

removeIndex

public void removeIndex(byte[] baseTableName,
                        String indexId)
                 throws IOException
Remove an index for a table.

Throws:
IOException

addIndex

public void addIndex(byte[] baseTableName,
                     IndexSpecification indexSpec)
              throws IOException
Add an index to a table.

Throws:
IOException


Copyright © 2008 The Apache Software Foundation