Class TestByteBufferIOEngine.MockBucketEntry
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
org.apache.hadoop.hbase.io.hfile.bucket.TestByteBufferIOEngine.MockBucketEntry
- All Implemented Interfaces:
org.apache.hadoop.hbase.nio.HBaseReferenceCounted
,org.apache.hbase.thirdparty.io.netty.util.ReferenceCounted
- Enclosing class:
- TestByteBufferIOEngine
private static class TestByteBufferIOEngine.MockBucketEntry
extends org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
Override the
BucketEntry
so that we can set an arbitrary offset.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry.BucketEntryHandler<T extends Object>
-
Field Summary
Fields inherited from class org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
allocator, COMPARATOR, deserializerIndex, markedAsEvicted
-
Constructor Summary
ConstructorDescriptionMockBucketEntry
(long offset, int length, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) -
Method Summary
Methods inherited from class org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
access, deserializerReference, getAccessCounter, getCachedTime, getLength, getOnDiskSizeWithHeader, getPriority, isRpcRef, markAsEvicted, refCnt, release, retain, setDeserializerReference, withWriteLock, wrapAsCacheable, wrapAsCacheable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.hadoop.hbase.nio.HBaseReferenceCounted
release, retain, touch, touch
-
Field Details
-
off
-
-
Constructor Details
-
MockBucketEntry
MockBucketEntry(long offset, int length, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
-
-
Method Details
-
offset
long offset()- Overrides:
offset
in classorg.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
-