@InterfaceAudience.Private public class SnapshotOfRegionAssignmentFromMeta extends Object
Constructor and Description |
---|
SnapshotOfRegionAssignmentFromMeta(Connection connection) |
SnapshotOfRegionAssignmentFromMeta(Connection connection,
Set<TableName> disabledTables,
boolean excludeOfflinedSplitParents) |
Modifier and Type | Method and Description |
---|---|
FavoredNodesPlan |
getExistingAssignmentPlan()
Get the favored nodes plan
|
Map<String,HRegionInfo> |
getRegionNameToRegionInfoMap()
Get the regioninfo for a region
|
Map<ServerName,List<HRegionInfo>> |
getRegionServerToRegionMap()
Get regionserver to region map
|
Map<HRegionInfo,ServerName> |
getRegionToRegionServerMap()
Get region to region server map
|
Set<TableName> |
getTableSet()
Get the table set
|
Map<TableName,List<HRegionInfo>> |
getTableToRegionMap()
Get regions for tables
|
void |
initialize()
Initialize the region assignment snapshot by scanning the hbase:meta table
|
public SnapshotOfRegionAssignmentFromMeta(Connection connection)
public SnapshotOfRegionAssignmentFromMeta(Connection connection, Set<TableName> disabledTables, boolean excludeOfflinedSplitParents)
public void initialize() throws IOException
IOException
public Map<String,HRegionInfo> getRegionNameToRegionInfoMap()
public Map<TableName,List<HRegionInfo>> getTableToRegionMap()
public Map<HRegionInfo,ServerName> getRegionToRegionServerMap()
public Map<ServerName,List<HRegionInfo>> getRegionServerToRegionMap()
public FavoredNodesPlan getExistingAssignmentPlan()