Class TestByteBufferIOEngine
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestByteBufferIOEngine
Basic test for
ByteBufferIOEngine-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classA CacheableDeserializer implementation which just store reference to theByteBuffto be deserialized.private static classOverride theBucketEntryso that we can set an arbitrary offset. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final HBaseClassTestRuleprivate static TestByteBufferIOEngine.BufferGrabbingDeserializer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.hbase.io.hfile.bucket.BucketEntrycreateBucketEntry(long offset, int len) (package private) static org.apache.hadoop.hbase.io.hfile.bucket.BucketEntrycreateBucketEntry(long offset, int len, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) (package private) static org.apache.hadoop.hbase.nio.ByteBuffcreateByteBuffer(int len, int val, boolean useHeap) (package private) static org.apache.hadoop.hbase.nio.ByteBuffgetByteBuff(org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry be) voidvoid
-
Field Details
-
CLASS_RULE
-
DESERIALIZER
-
-
Constructor Details
-
TestByteBufferIOEngine
public TestByteBufferIOEngine()
-
-
Method Details
-
createBucketEntry
-
createBucketEntry
static org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry createBucketEntry(long offset, int len, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) -
getByteBuff
static org.apache.hadoop.hbase.nio.ByteBuff getByteBuff(org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry be) -
testByteBufferIOEngine
- Throws:
Exception
-
createByteBuffer
-
testByteBufferIOEngineWithMBB
- Throws:
Exception
-