Uses of Class
org.apache.hadoop.hbase.nio.RefCnt
-
Uses of RefCnt in org.apache.hadoop.hbase.io.hfile.bucket
Modifier and TypeFieldDescriptionprivate final RefCnt
BucketEntry.refCnt
The RefCnt means how many paths are referring theBucketEntry
, there are two cases: 1.If theIOEngine.usesSharedMemory()
is false(eg.FileIOEngine
),the refCnt is always 1 until thisBucketEntry
is evicted fromBucketCache.backingMap
.Even if the correspondingHFileBlock
is referenced by RPC reading, the refCnt should not increase. -
Uses of RefCnt in org.apache.hadoop.hbase.nio
Modifier and TypeFieldDescriptionstatic final org.apache.hbase.thirdparty.io.netty.util.ResourceLeakDetector<RefCnt>
RefCnt.detector
private final org.apache.hbase.thirdparty.io.netty.util.ResourceLeakTracker<RefCnt>
RefCnt.leak
Modifier and TypeMethodDescriptionstatic RefCnt
RefCnt.create()
Create anRefCnt
with an initial reference count = 1.static RefCnt
RefCnt.create
(ByteBuffAllocator.Recycler recycler) ByteBuff.getRefCnt()
RefCnt.touch()
Modifier and TypeMethodDescriptionstatic 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) private static ByteBuff
ByteBuff.wrap
(List<ByteBuffer> buffers, RefCnt refCnt) ModifierConstructorDescription(package private)
MultiByteBuff
(RefCnt refCnt, ByteBuffer... items) private
MultiByteBuff
(RefCnt refCnt, ByteBuffer[] items, int[] itemBeginPos, int limit, int limitedIndex, int curItemIndex, int markedIndex) (package private)
SingleByteBuff
(RefCnt refCnt, ByteBuffer buf) -
Uses of RefCnt in org.apache.hadoop.hbase.regionserver