public class RegionStateStore
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
RegionStateStore.RegionStateVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected static char |
META_REPLICA_ID_DELIMITER
The delimiter for meta columns for replicaIds > 0
|
| Constructor and Description |
|---|
RegionStateStore(MasterServices master) |
| Modifier and Type | Method and Description |
|---|---|
void |
deleteRegion(RegionInfo regionInfo) |
void |
deleteRegions(java.util.List<RegionInfo> regions) |
static State |
getRegionState(Result r,
int replicaId)
Pull the region state from a catalog table
Result. |
void |
mergeRegions(RegionInfo parent,
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 java.io.IOException
java.io.IOExceptionpublic void updateRegionLocation(RegionStates.RegionStateNode regionStateNode) throws java.io.IOException
java.io.IOExceptionpublic void splitRegion(RegionInfo parent,
RegionInfo hriA,
RegionInfo hriB,
ServerName serverName)
throws java.io.IOException
java.io.IOExceptionpublic void mergeRegions(RegionInfo parent,
RegionInfo hriA,
RegionInfo hriB,
ServerName serverName)
throws java.io.IOException
java.io.IOExceptionpublic void deleteRegion(RegionInfo regionInfo)
throws java.io.IOException
java.io.IOExceptionpublic void deleteRegions(java.util.List<RegionInfo> regions)
throws java.io.IOException
java.io.IOExceptionpublic static State getRegionState(Result r,
int replicaId)
Result.r - Result to pull the region state from