Package org.apache.hadoop.hbase.master
Class TableNamespaceManager
java.lang.Object
org.apache.hadoop.hbase.master.TableNamespaceManager
This is a helper class used internally to manage the namespace metadata that is stored in the ns
family in meta table.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ConcurrentMap<String,
NamespaceDescriptor> (package private) static final int
static final String
static final String
private final MasterServices
private boolean
(package private) static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
private void
addToCache
(Result result, byte[] family, byte[] qualifier) private void
void
deleteNamespace
(String namespaceName) boolean
doesNamespaceExist
(String namespaceName) check whether a namespace has already existed.static long
static long
static void
list()
private void
private void
private void
void
private boolean
void
start()
private void
void
-
Field Details
-
KEY_MAX_REGIONS
- See Also:
-
KEY_MAX_TABLES
- See Also:
-
NS_INIT_TIMEOUT
- See Also:
-
DEFAULT_NS_INIT_TIMEOUT
- See Also:
-
cache
-
masterServices
-
migrationDone
-
-
Constructor Details
-
TableNamespaceManager
TableNamespaceManager(MasterServices masterServices)
-
-
Method Details
-
tryMigrateNamespaceTable
- Throws:
IOException
InterruptedException
-
addToCache
- Throws:
IOException
-
loadFromMeta
- Throws:
IOException
-
loadFromNamespace
- Throws:
IOException
-
shouldLoadFromMeta
- Throws:
IOException
-
loadNamespaceIntoCache
- Throws:
IOException
-
start
- Throws:
IOException
InterruptedException
-
doesNamespaceExist
check whether a namespace has already existed.- Throws:
IOException
-
get
- Throws:
IOException
-
checkMigrationDone
- Throws:
IOException
-
addOrUpdateNamespace
- Throws:
IOException
-
insertNamespaceToMeta
public static void insertNamespaceToMeta(Connection conn, NamespaceDescriptor ns) throws IOException - Throws:
IOException
-
deleteNamespace
- Throws:
IOException
-
list
- Throws:
IOException
-
validateTableAndRegionCount
- Throws:
IOException
-
setMigrationDone
-
getMaxTables
- Throws:
IOException
-
getMaxRegions
- Throws:
IOException
-