@InterfaceAudience.Private public final class BlockCacheFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BLOCKCACHE_BLOCKSIZE_KEY
The target block size used by blockcache instances.
|
static String |
BLOCKCACHE_POLICY_DEFAULT |
static String |
BLOCKCACHE_POLICY_KEY
Configuration key to cache block policy (Lru, TinyLfu, AdaptiveLRU, IndexOnlyLRU).
|
static String |
BLOCKCACHE_STATS_PERIOD_MINUTES_KEY
The window period length in minutes for CacheStats rolling metrics.
|
static String |
BLOCKCACHE_STATS_PERIODS
The total number of periods in the window.
|
static String |
BUCKET_CACHE_BUCKETS_KEY
A comma-delimited array of values for use as bucket sizes.
|
static String |
BUCKET_CACHE_WRITER_QUEUE_KEY |
static String |
BUCKET_CACHE_WRITER_THREADS_KEY |
static int |
DEFAULT_BLOCKCACHE_STATS_PERIOD_MINUTES
Default window period length in minutes.
|
static int |
DEFAULT_BLOCKCACHE_STATS_PERIODS
Default number of periods in the window.
|
static int |
DEFAULT_BUCKET_CACHE_WRITER_QUEUE |
static int |
DEFAULT_BUCKET_CACHE_WRITER_THREADS
Defaults for Bucket cache
|
| Modifier and Type | Method and Description |
|---|---|
static BlockCache |
createBlockCache(org.apache.hadoop.conf.Configuration conf) |
static BlockCache |
createBlockCache(org.apache.hadoop.conf.Configuration conf,
Map<String,HRegion> onlineRegions) |
public static final String BLOCKCACHE_POLICY_KEY
public static final String BLOCKCACHE_POLICY_DEFAULT
public static final String BUCKET_CACHE_WRITER_THREADS_KEY
public static final String BUCKET_CACHE_WRITER_QUEUE_KEY
public static final String BUCKET_CACHE_BUCKETS_KEY
public static final int DEFAULT_BUCKET_CACHE_WRITER_THREADS
public static final int DEFAULT_BUCKET_CACHE_WRITER_QUEUE
public static final String BLOCKCACHE_BLOCKSIZE_KEY
HConstants.DEFAULT_BLOCKSIZE.public static final String BLOCKCACHE_STATS_PERIOD_MINUTES_KEY
public static final int DEFAULT_BLOCKCACHE_STATS_PERIOD_MINUTES
public static final String BLOCKCACHE_STATS_PERIODS
public static final int DEFAULT_BLOCKCACHE_STATS_PERIODS
public static BlockCache createBlockCache(org.apache.hadoop.conf.Configuration conf, Map<String,HRegion> onlineRegions)
public static BlockCache createBlockCache(org.apache.hadoop.conf.Configuration conf)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.