| Package | Description |
|---|---|
| org.apache.hadoop.hbase.io.hfile.bucket |
Provides
BucketCache, an implementation of
BlockCache. |
| org.apache.hadoop.hbase.nio |
| Modifier and Type | Field and Description |
|---|---|
private RefCnt |
BucketEntry.refCnt
The RefCnt means how many paths are referring the
BucketEntry, each RPC reading path is
considering as one path, the BucketCache.backingMap reference is also considered a
path. |
| Constructor and Description |
|---|
BucketEntry(long offset,
int length,
long accessCounter,
boolean inMemory,
RefCnt refCnt,
ByteBuffAllocator allocator) |
| Modifier and Type | Field and Description |
|---|---|
protected RefCnt |
ByteBuff.refCnt |
| Modifier and Type | Method and Description |
|---|---|
static RefCnt |
RefCnt.create()
Create an
RefCnt with an initial reference count = 1. |
static RefCnt |
RefCnt.create(ByteBuffAllocator.Recycler recycler) |
| Modifier and Type | Method and Description |
|---|---|
static ByteBuff |
ByteBuff.wrap(ByteBuffer[] buffers,
RefCnt refCnt)
In theory, the upstream should never construct an ByteBuff by passing an given refCnt, so
please don't use this public method in other place.
|
private static ByteBuff |
ByteBuff.wrap(ByteBuffer buffer,
RefCnt refCnt)
Make this private because we don't want to expose the refCnt related wrap method to upstream.
|
private static ByteBuff |
ByteBuff.wrap(List<ByteBuffer> buffers,
RefCnt refCnt)
Make this private because we don't want to expose the refCnt related wrap method to upstream.
|
| Constructor and Description |
|---|
MultiByteBuff(RefCnt refCnt,
ByteBuffer... items) |
MultiByteBuff(RefCnt refCnt,
ByteBuffer[] items,
int[] itemBeginPos,
int limit,
int limitedIndex,
int curItemIndex,
int markedIndex) |
SingleByteBuff(RefCnt refCnt,
ByteBuffer buf) |
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.