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 createIndexedTable(IndexedTableDescriptor desc)
          Creates a new indexed 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, createTable, createTableAsync, deleteColumn, deleteColumn, deleteTable, deleteTable, disableTable, disableTable, enableTable, enableTable, flush, flush, getClusterStatus, getConnection, getMaster, 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

createIndexedTable

public void createIndexedTable(IndexedTableDescriptor desc)
                        throws IOException
Creates a new indexed table

Parameters:
desc - table descriptor for table
Throws:
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 © 2009 The Apache Software Foundation