Modifier and Type | Method and Description |
---|---|
void |
addColumn(byte[] tableName,
HColumnDescriptor column)
Add a new column to an existing table
|
void |
checkTableModifiable(byte[] tableName)
Check table is modifiable; i.e.
|
void |
createTable(HTableDescriptor desc,
byte[][] splitKeys)
Create a table using the given table definition.
|
void |
deleteColumn(byte[] tableName,
byte[] columnName)
Delete a column from an existing table
|
void |
deleteTable(byte[] tableName)
Delete a table
|
void |
disableTable(byte[] tableName)
Disable an existing table
|
void |
enableTable(byte[] tableName)
Enable an existing table
|
AssignmentManager |
getAssignmentManager() |
MasterCoprocessorHost |
getCoprocessorHost() |
ExecutorService |
getExecutorService() |
MasterFileSystem |
getMasterFileSystem() |
ServerManager |
getServerManager() |
TableDescriptors |
getTableDescriptors() |
boolean |
isServerShutdownHandlerEnabled() |
void |
modifyColumn(byte[] tableName,
HColumnDescriptor descriptor)
Modify the column descriptor of an existing column in an existing table
|
void |
modifyTable(byte[] tableName,
HTableDescriptor descriptor)
Modify the descriptor of an existing table
|
<T extends CoprocessorProtocol> |
registerProtocol(Class<T> protocol,
T handler)
Registers a new CoprocessorProtocol subclass and instance to
be available for handling
HMaster.execCoprocessor(org.apache.hadoop.hbase.client.coprocessor.Exec) calls. |
boolean |
shouldSplitMetaSeparately() |
getCatalogTracker, getConfiguration, getServerName, getZooKeeper
AssignmentManager getAssignmentManager()
AssignmentManager
MasterFileSystem getMasterFileSystem()
MasterFileSystem
utility class.ServerManager getServerManager()
ServerManager
instance.ExecutorService getExecutorService()
ExecutorService
void checkTableModifiable(byte[] tableName) throws IOException
tableName
- Name of table to check.TableNotDisabledException
TableNotFoundException
IOException
void createTable(HTableDescriptor desc, byte[][] splitKeys) throws IOException
desc
- The table definitionsplitKeys
- Starting row keys for the initial table regions. If null
a single region is created.IOException
void deleteTable(byte[] tableName) throws IOException
tableName
- The table nameIOException
void modifyTable(byte[] tableName, HTableDescriptor descriptor) throws IOException
tableName
- The table namedescriptor
- The updated table descriptorIOException
void enableTable(byte[] tableName) throws IOException
tableName
- The table nameIOException
void disableTable(byte[] tableName) throws IOException
tableName
- The table nameIOException
void addColumn(byte[] tableName, HColumnDescriptor column) throws IOException
tableName
- The table namecolumn
- The column definitionIOException
void modifyColumn(byte[] tableName, HColumnDescriptor descriptor) throws IOException
tableName
- The table namedescriptor
- The updated column definitionIOException
void deleteColumn(byte[] tableName, byte[] columnName) throws IOException
tableName
- The table namecolumnName
- The column nameIOException
TableDescriptors getTableDescriptors()
boolean isServerShutdownHandlerEnabled()
boolean shouldSplitMetaSeparately()
MasterCoprocessorHost getCoprocessorHost()
<T extends CoprocessorProtocol> boolean registerProtocol(Class<T> protocol, T handler)
HMaster.execCoprocessor(org.apache.hadoop.hbase.client.coprocessor.Exec)
calls.
Only a single protocol type/handler combination may be registered.
After the first registration, subsequent calls with the same protocol type
will fail with a return value of false
.
T
- the protocol typeprotocol
- a CoprocessorProtocol
subinterface defining the
protocol methodshandler
- an instance implementing the interfacetrue
if the registration was successful, false
otherwiseCopyright © 2014 The Apache Software Foundation. All Rights Reserved.