|
||||||||||
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.
NOTE: if you change the interface, you must change the RPC version number in HBaseRPCProtocolVersion
Field Summary |
---|
Fields inherited from interface org.apache.hadoop.hbase.ipc.HBaseRPCProtocolVersion |
---|
versionID |
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) |
ClusterStatus |
getClusterStatus()
Return cluster status. |
boolean |
isMasterRunning()
|
void |
modifyColumn(byte[] tableName,
byte[] columnName,
HColumnDescriptor descriptor)
Modifies an existing column on the specified table |
void |
modifyTable(byte[] tableName,
HConstants.Modify op,
org.apache.hadoop.io.Writable[] args)
Modify a table's metadata |
void |
shutdown()
Shutdown an HBase cluster. |
Methods inherited from interface org.apache.hadoop.ipc.VersionedProtocol |
---|
getProtocolVersion |
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 modifyTable(byte[] tableName, HConstants.Modify op, org.apache.hadoop.io.Writable[] args) throws IOException
tableName
- op
- args
-
IOException
void shutdown() throws IOException
IOException
ClusterStatus getClusterStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |