Class BucketCache.RAMQueueEntry
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.BucketCache.RAMQueueEntry
- Enclosing class:
- BucketCache
Block Entry stored in the memory with key,data and so on
-
Field Summary
Modifier and TypeFieldDescriptionprivate long
private final Cacheable
private boolean
private boolean
private final BlockCacheKey
-
Constructor Summary
ConstructorDescriptionRAMQueueEntry
(BlockCacheKey bck, Cacheable data, long accessCounter, boolean inMemory, boolean isCachePersistent) -
Method Summary
Modifier and TypeMethodDescriptionvoid
access
(long accessCounter) private ByteBuffAllocator
getData()
getKey()
writeToCache
(IOEngine ioEngine, BucketAllocator alloc, LongAdder realCacheSize, Function<BucketEntry, ByteBuffAllocator.Recycler> createRecycler, ByteBuffer metaBuff)
-
Field Details
-
key
-
data
-
accessCounter
-
inMemory
-
isCachePersistent
-
-
Constructor Details
-
RAMQueueEntry
RAMQueueEntry(BlockCacheKey bck, Cacheable data, long accessCounter, boolean inMemory, boolean isCachePersistent)
-
-
Method Details
-
getData
-
getKey
-
access
-
getByteBuffAllocator
-
writeToCache
public BucketEntry writeToCache(IOEngine ioEngine, BucketAllocator alloc, LongAdder realCacheSize, Function<BucketEntry, ByteBuffAllocator.Recycler> createRecycler, ByteBuffer metaBuff) throws IOException- Throws:
IOException
-