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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void(package private) booleancontainsTable(TableName tableName) (package private) intdecrementRegionCountForTable(TableName tableName, int count) (package private) StringgetName()Gets the name of the namespace.(package private) intGets the total number of regions in namespace.(package private) intgetRegionCountOfTable(TableName tableName) Gets the set of table names belonging to namespace.(package private) intincRegionCountForTable(TableName tableName, int count) (package private) voidremoveTable(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
-