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:
Gary Helmling 2011-09-17 01:17:39 +00:00
parent 6a7e3c3b8b
commit 9da4ab25b7
3 changed files with 18 additions and 0 deletions

View File

@ -504,6 +504,8 @@ Release 0.91.0 - Unreleased
HBASE-4425 Provide access to RpcServer instance from RegionServerServices HBASE-4425 Provide access to RpcServer instance from RegionServerServices
HBASE-4411 When copying tables/CFs, allow CF names to be changed HBASE-4411 When copying tables/CFs, allow CF names to be changed
(David Revell) (David Revell)
HBASE-4424 Provide coprocessors access to createTable() via
MasterServices
TASKS TASKS
HBASE-3559 Move report of split to master OFF the heartbeat channel HBASE-3559 Move report of split to master OFF the heartbeat channel

View File

@ -21,6 +21,7 @@ package org.apache.hadoop.hbase.master;
import java.io.IOException; import java.io.IOException;
import org.apache.hadoop.hbase.HTableDescriptor;
import org.apache.hadoop.hbase.Server; import org.apache.hadoop.hbase.Server;
import org.apache.hadoop.hbase.TableDescriptors; import org.apache.hadoop.hbase.TableDescriptors;
import org.apache.hadoop.hbase.TableNotDisabledException; import org.apache.hadoop.hbase.TableNotDisabledException;
@ -59,6 +60,15 @@ public interface MasterServices extends Server {
*/ */
public void checkTableModifiable(final byte [] tableName) throws IOException; 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. * @return Return table descriptors implementation.
*/ */

View File

@ -132,6 +132,12 @@ public class TestCatalogJanitor {
//no-op //no-op
} }
@Override
public void createTable(HTableDescriptor desc, byte[][] splitKeys)
throws IOException {
// no-op
}
@Override @Override
public AssignmentManager getAssignmentManager() { public AssignmentManager getAssignmentManager() {
return this.asm; return this.asm;