@InterfaceAudience.Private class NamespaceTableAndRegionInfo extends Object
Modifier and Type | Field and Description |
---|---|
private String |
name |
private Map<TableName,AtomicInteger> |
tableAndRegionInfo |
Constructor and Description |
---|
NamespaceTableAndRegionInfo(String namespace) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addTable(TableName tableName,
int regionCount) |
(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 |
getRegionCount()
Gets the total number of regions in namespace.
|
(package private) int |
getRegionCountOfTable(TableName tableName) |
(package private) Set<TableName> |
getTables()
Gets the set of table names belonging to namespace.
|
(package private) int |
incRegionCountForTable(TableName tableName,
int count) |
(package private) void |
removeTable(TableName tableName) |
String |
toString() |
private Map<TableName,AtomicInteger> tableAndRegionInfo
public NamespaceTableAndRegionInfo(String namespace)
Set<TableName> getTables()
int getRegionCount()
int getRegionCountOfTable(TableName tableName)
boolean containsTable(TableName tableName)
void removeTable(TableName tableName)
int incRegionCountForTable(TableName tableName, int count)
int decrementRegionCountForTable(TableName tableName, int count)
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.