Class TestByteBufferIOEngine
java.lang.Object
org.apache.hadoop.hbase.io.hfile.bucket.TestByteBufferIOEngine
Basic test for
ByteBufferIOEngine
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
A CacheableDeserializer implementation which just store reference to theByteBuff
to be deserialized.private static class
Override theBucketEntry
so that we can set an arbitrary offset. -
Field Summary
Modifier and TypeFieldDescriptionstatic final HBaseClassTestRule
private static TestByteBufferIOEngine.BufferGrabbingDeserializer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
createBucketEntry
(long offset, int len) (package private) static org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry
createBucketEntry
(long offset, int len, org.apache.hadoop.hbase.io.ByteBuffAllocator allocator) (package private) static org.apache.hadoop.hbase.nio.ByteBuff
createByteBuffer
(int len, int val, boolean useHeap) (package private) static org.apache.hadoop.hbase.nio.ByteBuff
getByteBuff
(org.apache.hadoop.hbase.io.hfile.bucket.BucketEntry be) void
void
-
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
-