@InterfaceAudience.Private public interface RegionNormalizer
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> |
computePlanForTable(TableName table)
Computes next optimal normalization plan.
|
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 |
setMasterRpcServices(MasterRpcServices masterRpcServices)
Set the master RPC service.
|
void |
setMasterServices(MasterServices masterServices)
Set the master service.
|
void setMasterServices(MasterServices masterServices)
computePlanForTable(TableName)
.masterServices
- master services to usevoid setMasterRpcServices(MasterRpcServices masterRpcServices)
computePlanForTable(TableName)
.masterRpcServices
- master RPC services to useList<NormalizationPlan> computePlanForTable(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–2019 The Apache Software Foundation. All rights reserved.