@InterfaceAudience.Private public final class BlockCacheFactory extends Object
| Modifier and Type | Class and Description | 
|---|---|
| private static class  | BlockCacheFactory.ExternalBlockCachesEnum of all built in external block caches. | 
| Modifier and Type | Field and Description | 
|---|---|
| static String | BLOCKCACHE_BLOCKSIZE_KEYThe target block size used by blockcache instances. | 
| static String | BLOCKCACHE_POLICY_DEFAULT | 
| static String | BLOCKCACHE_POLICY_KEYConfiguration key to cache block policy (Lru, TinyLfu). | 
| static String | BUCKET_CACHE_BUCKETS_KEYA comma-delimited array of values for use as bucket sizes. | 
| static String | BUCKET_CACHE_PERSISTENT_PATH_KEYIf the chosen ioengine can persist its state across restarts, the path to the file to persist
 to. | 
| static String | BUCKET_CACHE_WRITER_QUEUE_KEY | 
| static String | BUCKET_CACHE_WRITER_THREADS_KEY | 
| static int | DEFAULT_BUCKET_CACHE_WRITER_QUEUE | 
| static int | DEFAULT_BUCKET_CACHE_WRITER_THREADSDefaults for Bucket cache | 
| (package private) static String | DEPRECATED_BLOCKCACHE_BLOCKSIZE_KEYDeprecated. 
 use  BLOCKCACHE_BLOCKSIZE_KEYinstead. | 
| private static String | EXTERNAL_BLOCKCACHE_CLASS_KEY | 
| private static boolean | EXTERNAL_BLOCKCACHE_DEFAULT | 
| private static String | EXTERNAL_BLOCKCACHE_KEY | 
| private static org.slf4j.Logger | LOG | 
| Modifier | Constructor and Description | 
|---|---|
| private  | BlockCacheFactory() | 
| Modifier and Type | Method and Description | 
|---|---|
| static BlockCache | createBlockCache(org.apache.hadoop.conf.Configuration conf) | 
| private static BucketCache | createBucketCache(org.apache.hadoop.conf.Configuration c) | 
| private static BlockCache | createExternalBlockcache(org.apache.hadoop.conf.Configuration c) | 
| private static FirstLevelBlockCache | createFirstLevelCache(org.apache.hadoop.conf.Configuration c) | 
private static final org.slf4j.Logger LOG
public static final String BLOCKCACHE_POLICY_KEY
public static final String BLOCKCACHE_POLICY_DEFAULT
public static final String BUCKET_CACHE_PERSISTENT_PATH_KEY
file:/tmp/bucketcache.data , then we will write the bucketcache data to the file
 /tmp/bucketcache.data but the metadata on where the data is in the supplied file
 is an in-memory map that needs to be persisted across restarts. Where to store this
 in-memory state is what you supply here: e.g. /tmp/bucketcache.map.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.private static final String EXTERNAL_BLOCKCACHE_KEY
private static final boolean EXTERNAL_BLOCKCACHE_DEFAULT
private static final String EXTERNAL_BLOCKCACHE_CLASS_KEY
@Deprecated static final String DEPRECATED_BLOCKCACHE_BLOCKSIZE_KEY
BLOCKCACHE_BLOCKSIZE_KEY instead.private BlockCacheFactory()
public static BlockCache createBlockCache(org.apache.hadoop.conf.Configuration conf)
private static FirstLevelBlockCache createFirstLevelCache(org.apache.hadoop.conf.Configuration c)
private static BlockCache createExternalBlockcache(org.apache.hadoop.conf.Configuration c)
private static BucketCache createBucketCache(org.apache.hadoop.conf.Configuration c)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.