| Package | Description | 
|---|---|
| org.apache.hadoop.hbase.io.hfile.bucket | Provides  BucketCache, an implementation ofBlockCache. | 
| Modifier and Type | Field and Description | 
|---|---|
| (package private) ConcurrentHashMap<BlockCacheKey,BucketCache.RAMQueueEntry> | BucketCache.RAMCache. delegateDefined the map as  ConcurrentHashMapexplicitly here, because inBucketCache.RAMCache.get(BlockCacheKey)andBucketCache.RAMCache.putIfAbsent(BlockCacheKey, BucketCache.RAMQueueEntry), we need to
 guarantee the atomicity of map#computeIfPresent(key, func) and map#putIfAbsent(key, func). | 
| private BlockingQueue<BucketCache.RAMQueueEntry> | BucketCache.WriterThread. inputQueue | 
| (package private) ArrayList<BlockingQueue<BucketCache.RAMQueueEntry>> | BucketCache. writerQueuesA list of writer queues. | 
| Modifier and Type | Method and Description | 
|---|---|
| BucketCache.RAMQueueEntry | BucketCache.RAMCache. get(BlockCacheKey key) | 
| BucketCache.RAMQueueEntry | BucketCache.RAMCache. putIfAbsent(BlockCacheKey key,
           BucketCache.RAMQueueEntry entry)Return the previous associated value, or null if absent. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) static List<BucketCache.RAMQueueEntry> | BucketCache. getRAMQueueEntries(BlockingQueue<BucketCache.RAMQueueEntry> q,
                  List<BucketCache.RAMQueueEntry> receptacle)Blocks until elements available in  qthen tries to grab as many as possible before
 returning. | 
| Modifier and Type | Method and Description | 
|---|---|
| BucketCache.RAMQueueEntry | BucketCache.RAMCache. putIfAbsent(BlockCacheKey key,
           BucketCache.RAMQueueEntry entry)Return the previous associated value, or null if absent. | 
| Modifier and Type | Method and Description | 
|---|---|
| (package private) void | BucketCache.WriterThread. doDrain(List<BucketCache.RAMQueueEntry> entries)Flush the entries in ramCache to IOEngine and add bucket entry to backingMap. | 
| (package private) static List<BucketCache.RAMQueueEntry> | BucketCache. getRAMQueueEntries(BlockingQueue<BucketCache.RAMQueueEntry> q,
                  List<BucketCache.RAMQueueEntry> receptacle)Blocks until elements available in  qthen tries to grab as many as possible before
 returning. | 
| (package private) static List<BucketCache.RAMQueueEntry> | BucketCache. getRAMQueueEntries(BlockingQueue<BucketCache.RAMQueueEntry> q,
                  List<BucketCache.RAMQueueEntry> receptacle)Blocks until elements available in  qthen tries to grab as many as possible before
 returning. | 
| boolean | BucketCache.RAMCache. remove(BlockCacheKey key,
      Consumer<BucketCache.RAMQueueEntry> action)Defined an  Consumerhere, because once the removed entry release its reference count,
 then it's ByteBuffers may be recycled and accessing it outside this method will be thrown an
 exception. | 
| Constructor and Description | 
|---|
| WriterThread(BlockingQueue<BucketCache.RAMQueueEntry> queue) | 
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.