Package | Description |
---|---|
org.apache.hadoop.hbase.io | |
org.apache.hadoop.hbase.io.hfile.bucket |
Provides
BucketCache , an implementation of
BlockCache . |
org.apache.hadoop.hbase.nio |
Modifier and Type | Field and Description |
---|---|
static ByteBuffAllocator.Recycler |
ByteBuffAllocator.NONE |
Modifier and Type | Method and Description |
---|---|
private ByteBuffAllocator.Recycler |
BucketCache.createRecycler(BucketEntry bucketEntry)
Create the
ByteBuffAllocator.Recycler for BucketEntry.refCnt ,which would be used as
RefCnt.recycler of HFileBlock.buf returned from BucketCache.getBlock(org.apache.hadoop.hbase.io.hfile.BlockCacheKey, boolean, boolean, boolean) . |
Modifier and Type | Method and Description |
---|---|
(package private) static ConcurrentHashMap<BlockCacheKey,BucketEntry> |
BucketProtoUtils.fromPB(Map<Integer,String> deserializers,
org.apache.hadoop.hbase.shaded.protobuf.generated.BucketCacheProtos.BackingMap backingMap,
Function<BucketEntry,ByteBuffAllocator.Recycler> createRecycler) |
BucketEntry |
BucketCache.RAMQueueEntry.writeToCache(IOEngine ioEngine,
BucketAllocator alloc,
LongAdder realCacheSize,
Function<BucketEntry,ByteBuffAllocator.Recycler> createRecycler,
ByteBuffer metaBuff) |
Constructor and Description |
---|
BucketEntry(long offset,
int length,
long accessCounter,
boolean inMemory,
Function<BucketEntry,ByteBuffAllocator.Recycler> createRecycler,
ByteBuffAllocator allocator) |
Modifier and Type | Field and Description |
---|---|
private ByteBuffAllocator.Recycler |
RefCnt.recycler |
Modifier and Type | Method and Description |
---|---|
ByteBuffAllocator.Recycler |
RefCnt.getRecycler() |
Modifier and Type | Method and Description |
---|---|
static RefCnt |
RefCnt.create(ByteBuffAllocator.Recycler recycler) |
static ByteBuff |
ByteBuff.wrap(ByteBuffer[] buffers,
ByteBuffAllocator.Recycler recycler) |
static ByteBuff |
ByteBuff.wrap(List<ByteBuffer> buffers,
ByteBuffAllocator.Recycler recycler) |
Constructor and Description |
---|
MultiByteBuff(ByteBuffAllocator.Recycler recycler,
ByteBuffer... items) |
RefCnt(ByteBuffAllocator.Recycler recycler) |
SingleByteBuff(ByteBuffAllocator.Recycler recycler,
ByteBuffer buf) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.