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
    Modifier and Type
    Field
    Description
    private long
     

    Fields inherited from class org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry

    allocator, COMPARATOR, deserializerIndex, markedAsEvicted
  • Constructor Summary

    Constructors
    Constructor
    Description
    MockBucketEntry(long offset, int length, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) long
     

    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

      private long off
  • Constructor Details

    • MockBucketEntry

      MockBucketEntry(long offset, int length, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator)
  • Method Details

    • offset

      long offset()
      Overrides:
      offset in class org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry