@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.
Constructor and Description |
---|
SimpleRegionNormalizer() |
Modifier and Type | Method and Description |
---|---|
List<NormalizationPlan> |
computePlanForTable(TableName table)
Computes next most "urgent" normalization action on the table.
|
void |
setMasterRpcServices(MasterRpcServices masterRpcServices)
Set the master RPC service.
|
void |
setMasterServices(MasterServices masterServices)
Set the master service.
|
public void setMasterServices(MasterServices masterServices)
setMasterServices
in interface RegionNormalizer
masterServices
- inject instance of MasterServicespublic void setMasterRpcServices(MasterRpcServices masterRpcServices)
RegionNormalizer
RegionNormalizer.computePlanForTable(TableName)
.setMasterRpcServices
in interface RegionNormalizer
masterRpcServices
- master RPC services to usepublic List<NormalizationPlan> computePlanForTable(TableName table) throws HBaseIOException
computePlanForTable
in interface RegionNormalizer
table
- table to normalizeHBaseIOException
Copyright © 2007–2019 The Apache Software Foundation. All rights reserved.