@InterfaceAudience.LimitedPrivate(value="Configuration") public class SimpleRegionNormalizer extends Object implements RegionNormalizer
| Constructor and Description |
|---|
SimpleRegionNormalizer() |
| Modifier and Type | Method and Description |
|---|---|
List<NormalizationPlan> |
computePlansForTable(TableName table)
Computes next most "urgent" normalization action on the table.
|
org.apache.hadoop.conf.Configuration |
getConf() |
int |
getMergeMinRegionAge()
Return this instance's configured value for
MERGE_MIN_REGION_AGE_DAYS_KEY. |
int |
getMergeMinRegionSizeMb()
Return this instance's configured value for
MERGE_MIN_REGION_SIZE_MB_KEY. |
int |
getMinRegionCount()
Return this instance's configured value for
MIN_REGION_COUNT_KEY. |
boolean |
isMergeEnabled()
Return configured value for MasterSwitchType.MERGE.
|
boolean |
isSplitEnabled()
Return configured value for MasterSwitchType.SPLIT.
|
void |
setConf(org.apache.hadoop.conf.Configuration conf) |
void |
setMasterRpcServices(MasterRpcServices masterRpcServices)
Set the master RPC service.
|
void |
setMasterServices(MasterServices masterServices)
Set the master service.
|
public void setMasterRpcServices(MasterRpcServices masterRpcServices)
RegionNormalizerRegionNormalizer.computePlansForTable(TableName).setMasterRpcServices in interface RegionNormalizermasterRpcServices - master RPC services to usepublic org.apache.hadoop.conf.Configuration getConf()
getConf in interface org.apache.hadoop.conf.Configurablepublic void setConf(org.apache.hadoop.conf.Configuration conf)
setConf in interface org.apache.hadoop.conf.Configurablepublic boolean isSplitEnabled()
public boolean isMergeEnabled()
public int getMinRegionCount()
MIN_REGION_COUNT_KEY.public int getMergeMinRegionAge()
MERGE_MIN_REGION_AGE_DAYS_KEY.public int getMergeMinRegionSizeMb()
MERGE_MIN_REGION_SIZE_MB_KEY.public void setMasterServices(MasterServices masterServices)
setMasterServices in interface RegionNormalizermasterServices - inject instance of MasterServicespublic List<NormalizationPlan> computePlansForTable(TableName table) throws HBaseIOException
computePlansForTable in interface RegionNormalizertable - table to normalizeHBaseIOExceptionCopyright © 2007–2022 The Apache Software Foundation. All rights reserved.