@InterfaceAudience.Private @InterfaceStability.Evolving public interface RegionNormalizer extends org.apache.hadoop.conf.Configurable
SimpleRegionNormalizer
or plug in their own implementation. Please note that overly aggressive normalization rules
(attempting to make all regions perfectly equal in size) could potentially lead to
"split/merge storms".Modifier and Type | Method and Description |
---|---|
List<NormalizationPlan> |
computePlansForTable(TableName table)
Computes a list of normalizer actions to perform on the target table.
|
long |
getSkippedCount(NormalizationPlan.PlanType type) |
void |
planSkipped(RegionInfo hri,
NormalizationPlan.PlanType type)
Notification for the case where plan couldn't be executed due to constraint violation, such as
namespace quota
|
void |
setMasterServices(MasterServices masterServices)
Set the master service.
|
void setMasterServices(MasterServices masterServices)
computePlansForTable(TableName)
.masterServices
- master services to useList<NormalizationPlan> computePlansForTable(TableName table) throws HBaseIOException
table
- table to normalizeHBaseIOException
void planSkipped(RegionInfo hri, NormalizationPlan.PlanType type)
hri
- the region which is involved in the plantype
- type of planlong getSkippedCount(NormalizationPlan.PlanType type)
type
- type of plan for which skipped count is to be returnedCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.