private static final class SimpleRegionNormalizer.NormalizerConfiguration extends Object
Configuration
. Encapsulation in a POJO enables
atomic hot-reloading of configs without locks.Modifier and Type | Field and Description |
---|---|
private org.apache.hadoop.conf.Configuration |
conf |
private boolean |
mergeEnabled |
private Period |
mergeMinRegionAge |
private int |
mergeMinRegionCount |
private long |
mergeMinRegionSizeMb |
private boolean |
splitEnabled |
Modifier | Constructor and Description |
---|---|
private |
NormalizerConfiguration() |
private |
NormalizerConfiguration(org.apache.hadoop.conf.Configuration conf,
SimpleRegionNormalizer.NormalizerConfiguration currentConfiguration) |
Modifier and Type | Method and Description |
---|---|
org.apache.hadoop.conf.Configuration |
getConf() |
Period |
getMergeMinRegionAge() |
Period |
getMergeMinRegionAge(SimpleRegionNormalizer.NormalizeContext context) |
int |
getMergeMinRegionCount() |
int |
getMergeMinRegionCount(SimpleRegionNormalizer.NormalizeContext context) |
long |
getMergeMinRegionSizeMb() |
long |
getMergeMinRegionSizeMb(SimpleRegionNormalizer.NormalizeContext context) |
boolean |
isMergeEnabled() |
boolean |
isSplitEnabled() |
private final org.apache.hadoop.conf.Configuration conf
private final boolean splitEnabled
private final boolean mergeEnabled
private final int mergeMinRegionCount
private final Period mergeMinRegionAge
private final long mergeMinRegionSizeMb
private NormalizerConfiguration()
private NormalizerConfiguration(org.apache.hadoop.conf.Configuration conf, SimpleRegionNormalizer.NormalizerConfiguration currentConfiguration)
public org.apache.hadoop.conf.Configuration getConf()
public boolean isSplitEnabled()
public boolean isMergeEnabled()
public int getMergeMinRegionCount()
public int getMergeMinRegionCount(SimpleRegionNormalizer.NormalizeContext context)
public Period getMergeMinRegionAge()
public Period getMergeMinRegionAge(SimpleRegionNormalizer.NormalizeContext context)
public long getMergeMinRegionSizeMb()
public long getMergeMinRegionSizeMb(SimpleRegionNormalizer.NormalizeContext context)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.