|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HMasterInterface
Clients interact with the HMasterInterface to gain access to meta-level HBase functionality, like finding an HRegionServer and creating/destroying tables.
| Field Summary | |
|---|---|
static long |
versionID
Interface version. |
| Method Summary | |
|---|---|
void |
addColumn(byte[] tableName,
HColumnDescriptor column)
Adds a column to the specified table |
void |
createTable(HTableDescriptor desc)
Creates a new table |
void |
deleteColumn(byte[] tableName,
byte[] columnName)
Deletes a column from the specified table |
void |
deleteTable(byte[] tableName)
Deletes a table |
void |
disableTable(byte[] tableName)
Take table offline |
void |
enableTable(byte[] tableName)
Puts the table on-line (only needed if table has been previously taken offline) |
HServerAddress |
findRootRegion()
Get the location of the root region |
boolean |
isMasterRunning()
|
void |
modifyColumn(byte[] tableName,
byte[] columnName,
HColumnDescriptor descriptor)
Modifies an existing column on the specified table |
void |
modifyTableMeta(byte[] tableName,
HTableDescriptor desc)
Modify a table's metadata |
void |
shutdown()
Shutdown an HBase cluster. |
| Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
|---|
getProtocolVersion |
| Field Detail |
|---|
static final long versionID
Version 4 when we moved to all byte arrays (HBASE-42).
| Method Detail |
|---|
boolean isMasterRunning()
void createTable(HTableDescriptor desc)
throws IOException
desc - table descriptor
IOException
void deleteTable(byte[] tableName)
throws IOException
tableName -
IOException
void addColumn(byte[] tableName,
HColumnDescriptor column)
throws IOException
tableName - column - column descriptor
IOException
void modifyColumn(byte[] tableName,
byte[] columnName,
HColumnDescriptor descriptor)
throws IOException
tableName - columnName - name of the column to editdescriptor - new column descriptor
IOException
void deleteColumn(byte[] tableName,
byte[] columnName)
throws IOException
tableName - columnName -
IOException
void enableTable(byte[] tableName)
throws IOException
tableName -
IOException
void disableTable(byte[] tableName)
throws IOException
tableName -
IOException
void modifyTableMeta(byte[] tableName,
HTableDescriptor desc)
throws IOException
tableName - desc -
IOException
void shutdown()
throws IOException
IOExceptionHServerAddress findRootRegion()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||