@InterfaceAudience.Private public class RegionStateStore extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static interface |
RegionStateStore.RegionStateVisitor |
| 限定符和类型 | 字段和说明 |
|---|---|
protected static char |
META_REPLICA_ID_DELIMITER
The delimiter for meta columns for replicaIds > 0
|
| 构造器和说明 |
|---|
RegionStateStore(MasterServices master) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteRegion(RegionInfo regionInfo) |
void |
deleteRegions(List<RegionInfo> regions) |
static RegionState.State |
getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result. |
void |
mergeRegions(RegionInfo child,
RegionInfo hriA,
RegionInfo hriB,
ServerName serverName) |
void |
splitRegion(RegionInfo parent,
RegionInfo hriA,
RegionInfo hriB,
ServerName serverName) |
void |
updateRegionLocation(RegionStates.RegionStateNode regionStateNode) |
void |
visitMeta(RegionStateStore.RegionStateVisitor visitor) |
protected static final char META_REPLICA_ID_DELIMITER
public RegionStateStore(MasterServices master)
public void visitMeta(RegionStateStore.RegionStateVisitor visitor) throws IOException
IOExceptionpublic void updateRegionLocation(RegionStates.RegionStateNode regionStateNode) throws IOException
IOExceptionpublic void splitRegion(RegionInfo parent, RegionInfo hriA, RegionInfo hriB, ServerName serverName) throws IOException
IOExceptionpublic void mergeRegions(RegionInfo child, RegionInfo hriA, RegionInfo hriB, ServerName serverName) throws IOException
IOExceptionpublic void deleteRegion(RegionInfo regionInfo) throws IOException
IOExceptionpublic void deleteRegions(List<RegionInfo> regions) throws IOException
IOExceptionpublic static RegionState.State getRegionState(Result r, int replicaId)
Result.r - Result to pull the region state fromCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.