Uses of Class
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.RAMQueueEntry
-
Uses of BucketCache.RAMQueueEntry in org.apache.hadoop.hbase.io.hfile.bucket
Modifier and TypeFieldDescription(package private) final ConcurrentHashMap<BlockCacheKey,
BucketCache.RAMQueueEntry> BucketCache.RAMCache.delegate
Defined the map asConcurrentHashMap
explicitly 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 final BlockingQueue<BucketCache.RAMQueueEntry>
BucketCache.WriterThread.inputQueue
(package private) final ArrayList<BlockingQueue<BucketCache.RAMQueueEntry>>
BucketCache.writerQueues
A list of writer queues.Modifier and TypeMethodDescriptionBucketCache.RAMCache.get
(BlockCacheKey key) BucketCache.RAMCache.putIfAbsent
(BlockCacheKey key, BucketCache.RAMQueueEntry entry) Return the previous associated value, or null if absent.Modifier and TypeMethodDescription(package private) static List<BucketCache.RAMQueueEntry>
BucketCache.getRAMQueueEntries
(BlockingQueue<BucketCache.RAMQueueEntry> q, List<BucketCache.RAMQueueEntry> receptacle) Blocks until elements available inq
then tries to grab as many as possible before returning.Modifier and TypeMethodDescriptionprivate static String
BucketCache.getAllocationFailWarningMessage
(BucketAllocatorException fle, BucketCache.RAMQueueEntry re) Prepare and return a warning message for Bucket Allocator ExceptionBucketCache.RAMCache.putIfAbsent
(BlockCacheKey key, BucketCache.RAMQueueEntry entry) Return the previous associated value, or null if absent.Modifier and TypeMethodDescription(package private) void
BucketCache.doDrain
(List<BucketCache.RAMQueueEntry> entries, ByteBuffer metaBuff) 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 inq
then 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 inq
then tries to grab as many as possible before returning.boolean
BucketCache.RAMCache.remove
(BlockCacheKey key, Consumer<BucketCache.RAMQueueEntry> action) Defined anConsumer
here, 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.ModifierConstructorDescription(package private)