@InterfaceAudience.Private public class RegionStateStore extends 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(List<RegionInfo> regions) |
static RegionState.State |
getRegionState(Result r,
RegionInfo regionInfo)
Pull the region state from a catalog table
Result. |
void |
mergeRegions(RegionInfo child,
RegionInfo[] parents,
ServerName serverName) |
void |
removeRegionReplicas(TableName tableName,
int oldReplicaCount,
int newReplicaCount) |
void |
splitRegion(RegionInfo parent,
RegionInfo hriA,
RegionInfo hriB,
ServerName serverName) |
void |
visitMeta(RegionStateStore.RegionStateVisitor visitor) |
void |
visitMetaForRegion(String regionEncodedName,
RegionStateStore.RegionStateVisitor visitor)
Queries META table for the passed region encoded name, delegating action upon results to the
RegionStateVisitor passed as second parameter. |
protected static final char META_REPLICA_ID_DELIMITER
public RegionStateStore(MasterServices master)
public void visitMeta(RegionStateStore.RegionStateVisitor visitor) throws IOException
IOExceptionpublic void visitMetaForRegion(String regionEncodedName, RegionStateStore.RegionStateVisitor visitor) throws IOException
RegionStateVisitor passed as second parameter.regionEncodedName - encoded name for the Region we want to query META for.visitor - The RegionStateVisitor instance to react over the query
results.IOException - If some error occurs while querying META or parsing results.public void splitRegion(RegionInfo parent, RegionInfo hriA, RegionInfo hriB, ServerName serverName) throws IOException
IOExceptionpublic void mergeRegions(RegionInfo child, RegionInfo[] parents, ServerName serverName) throws IOException
IOExceptionpublic void deleteRegion(RegionInfo regionInfo) throws IOException
IOExceptionpublic void deleteRegions(List<RegionInfo> regions) throws IOException
IOExceptionpublic void removeRegionReplicas(TableName tableName, int oldReplicaCount, int newReplicaCount) throws IOException
IOExceptionpublic static RegionState.State getRegionState(Result r, RegionInfo regionInfo)
Result.Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.