@InterfaceAudience.Private @InterfaceStability.Evolving public class HbckRegionInfo extends Object implements KeyRange
Modifier and Type | Class and Description |
---|---|
static class |
HbckRegionInfo.HdfsEntry
Stores the regioninfo entries from HDFS
|
static class |
HbckRegionInfo.MetaEntry
Stores the regioninfo entries scanned from META
|
(package private) static class |
HbckRegionInfo.OnlineEntry
Stores the regioninfo retrieved from Online region servers.
|
Modifier and Type | Field and Description |
---|---|
(package private) static Comparator<HbckRegionInfo> |
COMPARATOR |
private List<HbckRegionInfo.OnlineEntry> |
deployedEntries |
private List<ServerName> |
deployedOn |
private int |
deployedReplicaId |
private HbckRegionInfo.HdfsEntry |
hdfsEntry |
private boolean |
isMerged |
private static org.slf4j.Logger |
LOG |
private HbckRegionInfo.MetaEntry |
metaEntry |
private RegionInfo |
primaryHRIForDeployedReplica |
private boolean |
skipChecks |
Constructor and Description |
---|
HbckRegionInfo(HbckRegionInfo.MetaEntry metaEntry) |
private static final org.slf4j.Logger LOG
private HbckRegionInfo.MetaEntry metaEntry
private HbckRegionInfo.HdfsEntry hdfsEntry
private List<HbckRegionInfo.OnlineEntry> deployedEntries
private List<ServerName> deployedOn
private boolean skipChecks
private boolean isMerged
private int deployedReplicaId
private RegionInfo primaryHRIForDeployedReplica
static final Comparator<HbckRegionInfo> COMPARATOR
public HbckRegionInfo(HbckRegionInfo.MetaEntry metaEntry)
public int getReplicaId()
public void addServer(RegionInfo regionInfo, ServerName serverName)
public byte[] getStartKey()
getStartKey
in interface KeyRange
public HbckRegionInfo.MetaEntry getMetaEntry()
public void setMetaEntry(HbckRegionInfo.MetaEntry metaEntry)
public HbckRegionInfo.HdfsEntry getHdfsEntry()
public void setHdfsEntry(HbckRegionInfo.HdfsEntry hdfsEntry)
public List<HbckRegionInfo.OnlineEntry> getOnlineEntries()
public List<ServerName> getDeployedOn()
public void loadHdfsRegioninfo(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public TableName getTableName()
public String getRegionNameAsString()
public byte[] getRegionName()
public RegionInfo getPrimaryHRIForDeployedReplica()
public org.apache.hadoop.fs.Path getHdfsRegionDir()
public boolean containsOnlyHdfsEdits()
public boolean isHdfsRegioninfoPresent()
public long getModTime()
public RegionInfo getHdfsHRI()
public void setSkipChecks(boolean skipChecks)
public boolean isSkipChecks()
public void setMerged(boolean isMerged)
public boolean isMerged()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.