|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.hbase.master.SnapshotOfRegionAssignmentFromMeta
@InterfaceAudience.Private public class SnapshotOfRegionAssignmentFromMeta
Used internally for reading meta and constructing datastructures that are then queried, for things like regions to regionservers, table to regions, etc. It also records the favored nodes mapping for regions.
Constructor Summary | |
---|---|
SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker)
|
|
SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker,
Set<TableName> disabledTables,
boolean excludeOfflinedSplitParents)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker)
public SnapshotOfRegionAssignmentFromMeta(CatalogTracker tracker, Set<TableName> disabledTables, boolean excludeOfflinedSplitParents)
Method Detail |
---|
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()
public Set<TableName> getTableSet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |