private class SimpleRegionNormalizer.NormalizeContext extends Object
SimpleRegionNormalizer.computePlansForTable(TableDescriptor)
. Grabbing this data from the assignment manager
up-front allows any computed values to be realized just once.Modifier and Type | Field and Description |
---|---|
private double |
averageRegionSizeMb |
private RegionStates |
regionStates |
private TableDescriptor |
tableDescriptor |
private TableName |
tableName |
private List<RegionInfo> |
tableRegions |
Constructor and Description |
---|
NormalizeContext(TableDescriptor tableDescriptor) |
Modifier and Type | Method and Description |
---|---|
double |
getAverageRegionSizeMb() |
<T> T |
getOrDefault(String key,
Function<String,T> function,
T defaultValue) |
RegionStates |
getRegionStates() |
TableName |
getTableName() |
List<RegionInfo> |
getTableRegions() |
private final RegionStates regionStates
private final List<RegionInfo> tableRegions
private final double averageRegionSizeMb
private final TableDescriptor tableDescriptor
public NormalizeContext(TableDescriptor tableDescriptor)
public TableName getTableName()
public RegionStates getRegionStates()
public List<RegionInfo> getTableRegions()
public double getAverageRegionSizeMb()
public <T> T getOrDefault(String key, Function<String,T> function, T defaultValue)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.