@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<ServerName,List<RegionInfo>> |
getPrimaryToRegionInfoMap() |
Map<String,RegionInfo> |
getRegionNameToRegionInfoMap()
Get the regioninfo for a region
|
Map<ServerName,List<RegionInfo>> |
getRegionServerToRegionMap()
Get regionserver to region map
|
Map<RegionInfo,ServerName> |
getRegionToRegionServerMap()
Get region to region server map
|
Map<ServerName,List<RegionInfo>> |
getSecondaryToRegionInfoMap() |
Set<TableName> |
getTableSet()
Get the table set
|
Map<TableName,List<RegionInfo>> |
getTableToRegionMap()
Get regions for tables
|
Map<ServerName,List<RegionInfo>> |
getTertiaryToRegionInfoMap() |
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,RegionInfo> getRegionNameToRegionInfoMap()
public Map<TableName,List<RegionInfo>> getTableToRegionMap()
public Map<RegionInfo,ServerName> getRegionToRegionServerMap()
public Map<ServerName,List<RegionInfo>> getRegionServerToRegionMap()
public FavoredNodesPlan getExistingAssignmentPlan()
public Map<ServerName,List<RegionInfo>> getSecondaryToRegionInfoMap()
public Map<ServerName,List<RegionInfo>> getTertiaryToRegionInfoMap()
public Map<ServerName,List<RegionInfo>> getPrimaryToRegionInfoMap()
Copyright © 2007–2019 Cloudera. All rights reserved.