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
Modifier and TypeClassDescriptionstatic class
Stores the regioninfo entries from HDFSstatic class
Stores the regioninfo entries scanned from META(package private) static class
Stores the regioninfo retrieved from Online region servers. -
Field Summary
Modifier and TypeFieldDescription(package private) static final Comparator<HbckRegionInfo>
private List<HbckRegionInfo.OnlineEntry>
private List<ServerName>
private int
private HbckRegionInfo.HdfsEntry
private boolean
private static final org.slf4j.Logger
private HbckRegionInfo.MetaEntry
private RegionInfo
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addServer
(RegionInfo regionInfo, ServerName serverName) boolean
byte[]
org.apache.hadoop.fs.Path
long
byte[]
int
byte[]
boolean
boolean
isMerged()
boolean
void
loadHdfsRegioninfo
(org.apache.hadoop.conf.Configuration conf) Read the .regioninfo file from the file system.void
setHdfsEntry
(HbckRegionInfo.HdfsEntry hdfsEntry) void
setMerged
(boolean isMerged) void
setMetaEntry
(HbckRegionInfo.MetaEntry metaEntry) void
setSkipChecks
(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:
getStartKey
in 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
-