@InterfaceAudience.Private public class SimpleRegionNormalizer extends Object implements RegionNormalizer
Region sizes are coarse and approximate on the order of megabytes. Additionally, "empty" regions (less than 1MB, with the previous note) are not merged away. This is by design to prevent normalization from undoing the pre-splitting of a table.
| 构造器和说明 |
|---|
SimpleRegionNormalizer() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<NormalizationPlan> |
computePlanForTable(TableName table)
Computes next most "urgent" normalization action on the 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 |
setMasterRpcServices(MasterRpcServices masterRpcServices)
Set the master RPC service.
|
void |
setMasterServices(MasterServices masterServices)
Set the master service.
|
public void setMasterServices(MasterServices masterServices)
setMasterServices 在接口中 RegionNormalizermasterServices - inject instance of MasterServicespublic void setMasterRpcServices(MasterRpcServices masterRpcServices)
RegionNormalizerRegionNormalizer.computePlanForTable(TableName).setMasterRpcServices 在接口中 RegionNormalizermasterRpcServices - master RPC services to usepublic void planSkipped(RegionInfo hri, NormalizationPlan.PlanType type)
RegionNormalizerplanSkipped 在接口中 RegionNormalizerhri - the region which is involved in the plantype - type of planpublic long getSkippedCount(NormalizationPlan.PlanType type)
getSkippedCount 在接口中 RegionNormalizertype - type of plan for which skipped count is to be returnedpublic List<NormalizationPlan> computePlanForTable(TableName table) throws HBaseIOException
computePlanForTable 在接口中 RegionNormalizertable - table to normalizeHBaseIOExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.