MapR-DB supports this list of methods in the HBaseAdmin class. For more information about this class, see Class HBaseAdmin in the HBase Java API documentation.

The descriptions of the methods in the table below are taken from the HBase documentation for this class, except where noted.

Modifier and TypeMethod and Description
void

addColumn(byte[] tableName, HColumnDescriptor column)

Adds a column to an existing table.

void

addColumn(String tableName, HColumnDescriptor column)

Adds a column to an existing table.

void

addColumn(TableName tableName, HColumnDescriptor column)

Adds a column to an existing table.

voidclose()
void

createTable(HTableDescriptor desc)

Creates a new table.

void

createTable(HTableDescriptor desc, byte[][] splitKeys)

Creates a new table with an initial set of empty regions defined by the specified split keys.

void

createTable(HTableDescriptor desc, byte[] startKey, byte[] endKey, int numRegions)

Creates a new table with the specified number of regions.

void

createTableAsync(HTableDescriptor desc, byte[][] splitKeys)

Creates a new table but does not block and wait for it to come online.

void

deleteColumn(byte[] tableName, String columnName)

Deletes a column from a table.

void

deleteColumn(String tableName, String columnName)

Deletes a column from a table.

void

deleteColumn(TableName tableName, byte[] columnName)

Deletes a column from a table.

voiddeleteTable(byte[] tableName)
voiddeleteTable(String tableName)
void

deleteTable(TableName tableName)

Deletes a table.

HTableDescriptor[]

deleteTables(Pattern pattern)

Deletes tables matching the passed in pattern and wait on completion.

HTableDescriptor[]

deleteTables(String regex)

Deletes tables matching the passed in pattern and wait on completion.

void

disableTable(byte[] tableName)

Disables a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

disableTable(String tableName)

Disables a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

disableTable(TableName tableName)

Disables a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

disableTableAsync(byte[] tableName)

Starts the disablement of a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

disableTableAsync(String tableName)

Starts the disablement of a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

disableTableAsync(TableName tableName)

Starts the disablement of a table.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

HTableDescriptor[]

disableTables(Pattern pattern)

Disables tables matching the passed in pattern and wait on completion.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

HTableDescriptor[]

disableTables(String regex)

Disable tables matching the passed in pattern and wait on completion.

Note: MapR-DB does not require the disabling of tables. Therefore, although it supports this method, it only flags the table as disabled. It performs no other operation.

void

enableTable(byte[] tableName)

Enables a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

void

enableTable(String tableName)

Enables a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

void

enableTable(TableName tableName)

Enables a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

void

enableTableAsync(byte[] tableName)

Starts the enablement of a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

void

enableTableAsync(String tableName)

Starts the enablement of a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

void

enableTableAsync(TableName tableName)

Starts the enablement of a table.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

HTableDescriptor[]

enableTables(Pattern pattern)

Enables tables matching the passed in pattern and wait on completion.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

HTableDescriptor[]

enableTables(String regex)

Enables tables matching the passed in pattern and wait on completion.

Note: MapR-DB does not require the enabling of tables. Therefore, although it supports this method, it only flags the table as enabled. It performs no other operation.

Pair<Integer,Integer>

getAlterStatus(byte[] tableName)

Gets the status of alter command - indicates how many regions have received the updated schema Asynchronous operation.

Pair<Integer,Integer>

getAlterStatus(TableName tableName)

Gets the status of alter command - indicates how many regions have received the updated schema Asynchronous operation.

AdminProtos.GetRegionInfoResponse.CompactionState

getCompactionState(byte[] tableNameOrRegionName)

Get the current compaction state of a table or region.

AdminProtos.GetRegionInfoResponse.CompactionState

getCompactionState(String tableNameOrRegionName)

Get the current compaction state of a table or region.

AdminProtos.GetRegionInfoResponse.CompactionState

getCompactionState(TableName tableName)

Gets the current compaction state of a table.

org.apache.hadoop.conf.ConfigurationgetConfiguration()
HTableDescriptorgetTableDescriptor(byte[] tableName)
HTableDescriptor

getTableDescriptor(TableName tableName)

Gets the tableDescriptor

HTableDescriptor[]getTableDescriptors(List<String> names)Get tableDescriptors
HTableDescriptor[]

getTableDescriptorsByTableName(List<TableName> tableNames)

Gets tableDescriptors.

List<HRegionInfo>getTableRegions(byte[] tableName)
List<HRegionInfo>

getTableRegions(TableName tableName)

Gets the regions of a given table.

booleanisTableAvailable(byte[] tableName)
booleanisTableAvailable(byte[] tableName, byte[][] splitKeys)
booleanisTableAvailable(String tableName)
booleanisTableAvailable(String tableName, byte[][] splitKeys)
booleanisTableAvailable(TableName tableName)
boolean

isTableAvailable(TableName tableName, byte[][] splitKeys)

Use this API to check if the table has been created with the specified number of splitkeys which was used while creating the given table.

booleanisTableDisabled(byte[] tableName)
booleanisTableDisabled(String tableName)
booleanisTableDisabled(TableName tableName)
booleanisTableEnabled(byte[] tableName)
booleanisTableEnabled(String tableName)
booleanisTableEnabled(TableName tableName)
HTableDescriptor[]listTables()List all the userspace tables.
HTableDescriptor[]

listTables(Pattern pattern)

Lists all the userspace tables matching the given pattern.

HTableDescriptor[]

listTables(Pattern pattern, boolean includeSysTables)

Lists all the tables matching the given pattern.

HTableDescriptor[]

listTables(String regex)

Lists all the userspace tables matching the given regular expression.

HTableDescriptor[]

listTables(String regex, boolean includeSysTables)

Lists all the tables matching the given pattern.

void

modifyColumn(byte[] tableName, HColumnDescriptor descriptor)

Modifies an existing column family on a table.

void

modifyColumn(String tableName, HColumnDescriptor descriptor)

Modifies an existing column family on a table.

void

modifyColumn(TableName tableName, HColumnDescriptor descriptor)

Modifies an existing column family on a table.

voidmodifyTable(byte[] tableName, HTableDescriptor htd)
voidmodifyTable(String tableName, HTableDescriptor htd)
void

modifyTable(TableName tableName, HTableDescriptor htd)

Modifies an existing table, more IRB friendly version.

void

split(byte[] tableNameOrRegionName)

Split a table or an individual region.

void

split(byte[] tableNameOrRegionName, byte[] splitPoint)

Split a table or an individual region.

void

split(ServerName sn, HRegionInfo hri, byte[] splitPoint)

Split a table or an individual region.

void

split(String tableNameOrRegionName)

Split a table or an individual region.

void

split(String tableNameOrRegionName, String splitPoint)

Split a table or an individual region.

void

split(TableName tableName)

Splits a table.

void

split(TableName tableName, byte[] splitPoint)

Splits a table.

booleantableExists(byte[] tableName)
booleantableExists(String tableName)
booleantableExists(TableName tableName)