Package org.apache.hadoop.hbase.util
Class TestByteBufferArray
java.lang.Object
org.apache.hadoop.hbase.util.TestByteBufferArray
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.util.ByteBufferAllocator
static final HBaseClassTestRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertByteBuffEquals
(org.apache.hadoop.hbase.nio.ByteBuff a, org.apache.hadoop.hbase.nio.ByteBuff b) private org.apache.hadoop.hbase.nio.ByteBuff
createByteBuff
(int len) private void
private static void
fill
(org.apache.hadoop.hbase.nio.ByteBuff buf, byte val) void
void
private void
testAsSubByteBuff
(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int len, boolean isMulti) void
void
private void
testReadAndWrite
(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int dataSize, byte val)
-
Field Details
-
CLASS_RULE
-
ALLOC
-
-
Constructor Details
-
TestByteBufferArray
public TestByteBufferArray()
-
-
Method Details
-
testAsSubBufferWhenEndOffsetLandInLastBuffer
- Throws:
Exception
-
testByteBufferCreation
- Throws:
Exception
-
testByteBufferCreation1
- Throws:
Exception
-
fill
-
createByteBuff
-
expectedAssert
- Throws:
IOException
-
testArrayIO
- Throws:
IOException
-
testReadAndWrite
private void testReadAndWrite(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int dataSize, byte val) -
testAsSubByteBuff
private void testAsSubByteBuff(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int len, boolean isMulti) -
assertByteBuffEquals
private void assertByteBuffEquals(org.apache.hadoop.hbase.nio.ByteBuff a, org.apache.hadoop.hbase.nio.ByteBuff b)
-