@InterfaceAudience.Private public class SnapshotOfRegionAssignmentFromMeta extends Object
Modifier and Type | Field and Description |
---|---|
private Connection |
connection |
private Map<ServerName,List<RegionInfo>> |
currentRSToRegionMap
the regionServer to region map
|
private Set<TableName> |
disabledTables |
private boolean |
excludeOfflinedSplitParents |
private FavoredNodesPlan |
existingAssignmentPlan
the existing assignment plan in the hbase:meta region
|
private static org.slf4j.Logger |
LOG |
private Map<ServerName,List<RegionInfo>> |
primaryRSToRegionMap |
private Map<String,RegionInfo> |
regionNameToRegionInfoMap
the region name to region info map
|
private Map<RegionInfo,ServerName> |
regionToRegionServerMap
the region to region server map
|
private Map<ServerName,List<RegionInfo>> |
secondaryRSToRegionMap |
private Map<TableName,List<RegionInfo>> |
tableToRegionMap
the table name to region map
|
private Map<ServerName,List<RegionInfo>> |
teritiaryRSToRegionMap |
Constructor and Description |
---|
SnapshotOfRegionAssignmentFromMeta(Connection connection) |
SnapshotOfRegionAssignmentFromMeta(Connection connection,
Set<TableName> disabledTables,
boolean excludeOfflinedSplitParents) |
private static final org.slf4j.Logger LOG
private final Connection connection
private final Map<TableName,List<RegionInfo>> tableToRegionMap
private Map<RegionInfo,ServerName> regionToRegionServerMap
private final Map<String,RegionInfo> regionNameToRegionInfoMap
private final Map<ServerName,List<RegionInfo>> currentRSToRegionMap
private final Map<ServerName,List<RegionInfo>> secondaryRSToRegionMap
private final Map<ServerName,List<RegionInfo>> teritiaryRSToRegionMap
private final Map<ServerName,List<RegionInfo>> primaryRSToRegionMap
private final FavoredNodesPlan existingAssignmentPlan
private final Set<TableName> disabledTables
private final boolean excludeOfflinedSplitParents
public SnapshotOfRegionAssignmentFromMeta(Connection connection)
public SnapshotOfRegionAssignmentFromMeta(Connection connection, Set<TableName> disabledTables, boolean excludeOfflinedSplitParents)
private void processMetaRecord(Result result) throws IOException
IOException
public void initialize() throws IOException
IOException
private void addRegion(RegionInfo regionInfo)
private void addAssignment(RegionInfo regionInfo, ServerName server)
private void addPrimaryAssignment(RegionInfo regionInfo, ServerName server)
private void addSecondaryAssignment(RegionInfo regionInfo, ServerName server)
private void addTeritiaryAssignment(RegionInfo regionInfo, ServerName server)
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 Set<TableName> getTableSet()
public Map<ServerName,List<RegionInfo>> getSecondaryToRegionInfoMap()
public Map<ServerName,List<RegionInfo>> getTertiaryToRegionInfoMap()
public Map<ServerName,List<RegionInfo>> getPrimaryToRegionInfoMap()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.