@InterfaceAudience.Private public class TableNamespaceManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_MAX_REGIONS |
static String |
KEY_MAX_TABLES |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdateNamespace(NamespaceDescriptor ns) |
void |
deleteNamespace(String namespaceName) |
boolean |
doesNamespaceExist(String namespaceName)
check whether a namespace has already existed.
|
NamespaceDescriptor |
get(String name) |
static long |
getMaxRegions(NamespaceDescriptor ns) |
static long |
getMaxTables(NamespaceDescriptor ns) |
static void |
insertNamespaceToMeta(Connection conn,
NamespaceDescriptor ns) |
List<NamespaceDescriptor> |
list() |
void |
start() |
void |
validateTableAndRegionCount(NamespaceDescriptor desc) |
public static final String KEY_MAX_REGIONS
public static final String KEY_MAX_TABLES
public void start()
throws IOException
IOExceptionpublic boolean doesNamespaceExist(String namespaceName) throws IOException
IOExceptionpublic NamespaceDescriptor get(String name) throws IOException
IOExceptionpublic void addOrUpdateNamespace(NamespaceDescriptor ns) throws IOException
IOExceptionpublic static void insertNamespaceToMeta(Connection conn, NamespaceDescriptor ns) throws IOException
IOExceptionpublic void deleteNamespace(String namespaceName) throws IOException
IOExceptionpublic List<NamespaceDescriptor> list() throws IOException
IOExceptionpublic void validateTableAndRegionCount(NamespaceDescriptor desc) throws IOException
IOExceptionpublic static long getMaxTables(NamespaceDescriptor ns) throws IOException
IOExceptionpublic static long getMaxRegions(NamespaceDescriptor ns) throws IOException
IOExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.