Class LruBlockCacheConfiguration
- java.lang.Object
-
- org.apache.accumulo.core.file.blockfile.cache.lru.LruBlockCacheConfiguration
-
public final class LruBlockCacheConfiguration extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLruBlockCacheConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description static StringACCEPTABLE_FACTOR_PROPERTYstatic FloatDEFAULT_ACCEPTABLE_FACTORstatic IntegerDEFAULT_CONCURRENCY_LEVELstatic FloatDEFAULT_LOAD_FACTORBacking Concurrent Map Configurationstatic FloatDEFAULT_MEMORY_FACTORstatic FloatDEFAULT_MIN_FACTOREviction thresholdsstatic FloatDEFAULT_MULTI_FACTORstatic FloatDEFAULT_SINGLE_FACTORPriority bucketsstatic StringEVICTION_THREAD_PROPERTYstatic StringMAP_CONCURRENCY_PROPERTYstatic StringMAP_LOAD_PROPERTYstatic StringMEMORY_FACTOR_PROPERTYstatic StringMIN_FACTOR_PROPERTYstatic StringMULTI_FACTOR_PROPERTYstatic StringPROPERTY_PREFIXstatic StringSINGLE_FACTOR_PROPERTY
-
Constructor Summary
Constructors Constructor Description LruBlockCacheConfiguration(BlockCacheManager.Configuration conf, CacheType type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LruBlockCacheConfiguration.Builderbuilder(CacheType ct)floatgetAcceptableFactor()longgetBlockSize()intgetMapConcurrencyLevel()floatgetMapLoadFactor()longgetMaxSize()floatgetMemoryFactor()floatgetMinFactor()floatgetMultiFactor()floatgetSingleFactor()booleanisUseEvictionThread()StringtoString()
-
-
-
Field Detail
-
PROPERTY_PREFIX
public static final String PROPERTY_PREFIX
- See Also:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
public static final Float DEFAULT_LOAD_FACTOR
Backing Concurrent Map Configuration
-
DEFAULT_CONCURRENCY_LEVEL
public static final Integer DEFAULT_CONCURRENCY_LEVEL
-
DEFAULT_MIN_FACTOR
public static final Float DEFAULT_MIN_FACTOR
Eviction thresholds
-
DEFAULT_ACCEPTABLE_FACTOR
public static final Float DEFAULT_ACCEPTABLE_FACTOR
-
DEFAULT_SINGLE_FACTOR
public static final Float DEFAULT_SINGLE_FACTOR
Priority buckets
-
DEFAULT_MULTI_FACTOR
public static final Float DEFAULT_MULTI_FACTOR
-
DEFAULT_MEMORY_FACTOR
public static final Float DEFAULT_MEMORY_FACTOR
-
ACCEPTABLE_FACTOR_PROPERTY
public static final String ACCEPTABLE_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MIN_FACTOR_PROPERTY
public static final String MIN_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
SINGLE_FACTOR_PROPERTY
public static final String SINGLE_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MULTI_FACTOR_PROPERTY
public static final String MULTI_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MEMORY_FACTOR_PROPERTY
public static final String MEMORY_FACTOR_PROPERTY
- See Also:
- Constant Field Values
-
MAP_LOAD_PROPERTY
public static final String MAP_LOAD_PROPERTY
- See Also:
- Constant Field Values
-
MAP_CONCURRENCY_PROPERTY
public static final String MAP_CONCURRENCY_PROPERTY
- See Also:
- Constant Field Values
-
EVICTION_THREAD_PROPERTY
public static final String EVICTION_THREAD_PROPERTY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LruBlockCacheConfiguration
public LruBlockCacheConfiguration(BlockCacheManager.Configuration conf, CacheType type)
-
-
Method Detail
-
getAcceptableFactor
public float getAcceptableFactor()
-
getMinFactor
public float getMinFactor()
-
getSingleFactor
public float getSingleFactor()
-
getMultiFactor
public float getMultiFactor()
-
getMemoryFactor
public float getMemoryFactor()
-
getMapLoadFactor
public float getMapLoadFactor()
-
getMapConcurrencyLevel
public int getMapConcurrencyLevel()
-
isUseEvictionThread
public boolean isUseEvictionThread()
-
builder
public static LruBlockCacheConfiguration.Builder builder(CacheType ct)
-
getMaxSize
public long getMaxSize()
-
getBlockSize
public long getBlockSize()
-
-