Package org.apache.hadoop.hbase.util
Class HbckRegionInfo
java.lang.Object
org.apache.hadoop.hbase.util.HbckRegionInfo
- All Implemented Interfaces:
KeyRange
Maintain information about a particular region. It gathers information from three places -- HDFS,
META, and region servers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classStores the regioninfo entries from HDFSstatic classStores the regioninfo entries scanned from META(package private) static classStores the regioninfo retrieved from Online region servers. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final Comparator<HbckRegionInfo>private List<HbckRegionInfo.OnlineEntry>private List<ServerName>private intprivate HbckRegionInfo.HdfsEntryprivate booleanprivate static final org.slf4j.Loggerprivate HbckRegionInfo.MetaEntryprivate RegionInfoprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServer(RegionInfo regionInfo, ServerName serverName) booleanbyte[]org.apache.hadoop.fs.Pathlongbyte[]intbyte[]booleanbooleanisMerged()booleanvoidloadHdfsRegioninfo(org.apache.hadoop.conf.Configuration conf) Read the .regioninfo file from the file system.voidsetHdfsEntry(HbckRegionInfo.HdfsEntry hdfsEntry) voidsetMerged(boolean isMerged) voidsetMetaEntry(HbckRegionInfo.MetaEntry metaEntry) voidsetSkipChecks(boolean skipChecks) toString()
-
Field Details
-
LOG
-
metaEntry
-
hdfsEntry
-
deployedEntries
-
deployedOn
-
skipChecks
-
isMerged
-
deployedReplicaId
-
-
COMPARATOR
-
-
Constructor Details
-
HbckRegionInfo
-
-
Method Details
-
getReplicaId
-
addServer
-
toString
-
getStartKey
- Specified by:
getStartKeyin interfaceKeyRange
-
getEndKey
-
getMetaEntry
-
setMetaEntry
-
getHdfsEntry
-
setHdfsEntry
-
getOnlineEntries
-
getDeployedOn
-
loadHdfsRegioninfo
Read the .regioninfo file from the file system. If there is no .regioninfo, add it to the orphan hdfs region list.- Throws:
IOException
-
getTableName
-
getRegionNameAsString
-
getRegionName
-
getPrimaryHRIForDeployedReplica
-
getHdfsRegionDir
-
containsOnlyHdfsEdits
-
isHdfsRegioninfoPresent
-
getModTime
-
getHdfsHRI
-
setSkipChecks
-
isSkipChecks
-
setMerged
-
isMerged
-