|
||||||||||
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(org.apache.hadoop.io.Text tableName,
HColumnDescriptor column)
Adds a column to the specified table |
void |
createTable(HTableDescriptor desc)
Creates a new table |
void |
deleteColumn(org.apache.hadoop.io.Text tableName,
org.apache.hadoop.io.Text columnName)
Deletes a column from the specified table |
void |
deleteTable(org.apache.hadoop.io.Text tableName)
Deletes a table |
void |
disableTable(org.apache.hadoop.io.Text tableName)
Take table offline |
void |
enableTable(org.apache.hadoop.io.Text 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(org.apache.hadoop.io.Text tableName,
org.apache.hadoop.io.Text columnName,
HColumnDescriptor descriptor)
Modifies an existing column on the specified table |
void |
shutdown()
Shutdown an HBase cluster. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
Field Detail |
---|
static final long versionID
Method Detail |
---|
boolean isMasterRunning()
void createTable(HTableDescriptor desc) throws IOException
desc
- table descriptor
IOException
void deleteTable(org.apache.hadoop.io.Text tableName) throws IOException
tableName
-
IOException
void addColumn(org.apache.hadoop.io.Text tableName, HColumnDescriptor column) throws IOException
tableName
- column
- column descriptor
IOException
void modifyColumn(org.apache.hadoop.io.Text tableName, org.apache.hadoop.io.Text columnName, HColumnDescriptor descriptor) throws IOException
tableName
- columnName
- name of the column to editdescriptor
- new column descriptor
IOException
void deleteColumn(org.apache.hadoop.io.Text tableName, org.apache.hadoop.io.Text columnName) throws IOException
tableName
- columnName
-
IOException
void enableTable(org.apache.hadoop.io.Text tableName) throws IOException
tableName
-
IOException
void disableTable(org.apache.hadoop.io.Text tableName) throws IOException
tableName
-
IOException
void shutdown() throws IOException
IOException
HServerAddress findRootRegion()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |