Class NamespaceTableAndRegionInfo
java.lang.Object
org.apache.hadoop.hbase.namespace.NamespaceTableAndRegionInfo
NamespaceTableAndRegionInfo is a helper class that contains information about current state of
tables and regions in a namespace.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) boolean
containsTable
(TableName tableName) (package private) int
decrementRegionCountForTable
(TableName tableName, int count) (package private) String
getName()
Gets the name of the namespace.(package private) int
Gets the total number of regions in namespace.(package private) int
getRegionCountOfTable
(TableName tableName) Gets the set of table names belonging to namespace.(package private) int
incRegionCountForTable
(TableName tableName, int count) (package private) void
removeTable
(TableName tableName) toString()
-
Field Details
-
name
-
tableAndRegionInfo
-
-
Constructor Details
-
NamespaceTableAndRegionInfo
-
-
Method Details
-
getName
Gets the name of the namespace.- Returns:
- name of the namespace.
-
getTables
Gets the set of table names belonging to namespace.- Returns:
- A set of table names.
-
getRegionCount
int getRegionCount()Gets the total number of regions in namespace.- Returns:
- the region count
-
getRegionCountOfTable
-
containsTable
-
addTable
-
removeTable
-
incRegionCountForTable
-
decrementRegionCountForTable
-
toString
-