Package org.apache.hadoop.hbase.util
Class TestByteBufferArray
java.lang.Object
org.apache.hadoop.hbase.util.TestByteBufferArray
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.hadoop.hbase.util.ByteBufferAllocatorstatic final HBaseClassTestRule -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidassertByteBuffEquals(org.apache.hadoop.hbase.nio.ByteBuff a, org.apache.hadoop.hbase.nio.ByteBuff b) private org.apache.hadoop.hbase.nio.ByteBuffcreateByteBuff(int len) private voidprivate static voidfill(org.apache.hadoop.hbase.nio.ByteBuff buf, byte val) voidvoidprivate voidtestAsSubByteBuff(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int len, boolean isMulti) voidvoidprivate voidtestReadAndWrite(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)
-