HBASE-4424 Provide coprocessors access to createTable() via MasterServices
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1171882 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6a7e3c3b8b
commit
9da4ab25b7
|
@ -504,6 +504,8 @@ Release 0.91.0 - Unreleased
|
|||
HBASE-4425 Provide access to RpcServer instance from RegionServerServices
|
||||
HBASE-4411 When copying tables/CFs, allow CF names to be changed
|
||||
(David Revell)
|
||||
HBASE-4424 Provide coprocessors access to createTable() via
|
||||
MasterServices
|
||||
|
||||
TASKS
|
||||
HBASE-3559 Move report of split to master OFF the heartbeat channel
|
||||
|
|
|
@ -21,6 +21,7 @@ package org.apache.hadoop.hbase.master;
|
|||
|
||||
import java.io.IOException;
|
||||
|
||||
import org.apache.hadoop.hbase.HTableDescriptor;
|
||||
import org.apache.hadoop.hbase.Server;
|
||||
import org.apache.hadoop.hbase.TableDescriptors;
|
||||
import org.apache.hadoop.hbase.TableNotDisabledException;
|
||||
|
@ -59,6 +60,15 @@ public interface MasterServices extends Server {
|
|||
*/
|
||||
public void checkTableModifiable(final byte [] tableName) throws IOException;
|
||||
|
||||
/**
|
||||
* Create a table using the given table definition.
|
||||
* @param desc The table definition
|
||||
* @param splitKeys Starting row keys for the initial table regions. If null
|
||||
* a single region is created.
|
||||
*/
|
||||
public void createTable(HTableDescriptor desc, byte [][] splitKeys)
|
||||
throws IOException;
|
||||
|
||||
/**
|
||||
* @return Return table descriptors implementation.
|
||||
*/
|
||||
|
|
|
@ -132,6 +132,12 @@ public class TestCatalogJanitor {
|
|||
//no-op
|
||||
}
|
||||
|
||||
@Override
|
||||
public void createTable(HTableDescriptor desc, byte[][] splitKeys)
|
||||
throws IOException {
|
||||
// no-op
|
||||
}
|
||||
|
||||
@Override
|
||||
public AssignmentManager getAssignmentManager() {
|
||||
return this.asm;
|
||||
|
|
Loading…
Reference in New Issue