public class TestByteBufferArray extends Object
| Modifier and Type | Class and Description |
|---|---|
private static interface |
TestByteBufferArray.Call |
| Modifier and Type | Field and Description |
|---|---|
private static org.apache.hadoop.hbase.util.ByteBufferAllocator |
ALLOC |
static HBaseClassTestRule |
CLASS_RULE |
private static Random |
RANDOM |
| Constructor and Description |
|---|
TestByteBufferArray() |
| Modifier and Type | Method and Description |
|---|---|
private 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 |
expectedAssert(TestByteBufferArray.Call r) |
private static void |
fill(org.apache.hadoop.hbase.nio.ByteBuff buf,
byte val) |
void |
testArrayIO() |
void |
testAsSubBufferWhenEndOffsetLandInLastBuffer() |
private void |
testAsSubByteBuff(org.apache.hadoop.hbase.util.ByteBufferArray array,
int off,
int len,
boolean isMulti) |
void |
testByteBufferCreation() |
void |
testByteBufferCreation1() |
private void |
testReadAndWrite(org.apache.hadoop.hbase.util.ByteBufferArray array,
int off,
int dataSize,
byte val) |
public static final HBaseClassTestRule CLASS_RULE
private static final org.apache.hadoop.hbase.util.ByteBufferAllocator ALLOC
public TestByteBufferArray()
public void testAsSubBufferWhenEndOffsetLandInLastBuffer() throws Exception
Exceptionpublic void testByteBufferCreation() throws Exception
Exceptionpublic void testByteBufferCreation1() throws Exception
Exceptionprivate static void fill(org.apache.hadoop.hbase.nio.ByteBuff buf, byte val)
private org.apache.hadoop.hbase.nio.ByteBuff createByteBuff(int len)
private void expectedAssert(TestByteBufferArray.Call r) throws IOException
IOExceptionpublic void testArrayIO() throws IOException
IOExceptionprivate void testReadAndWrite(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int dataSize, byte val)
private void testAsSubByteBuff(org.apache.hadoop.hbase.util.ByteBufferArray array, int off, int len, boolean isMulti)
private void assertByteBuffEquals(org.apache.hadoop.hbase.nio.ByteBuff a, org.apache.hadoop.hbase.nio.ByteBuff b)
Copyright © 2007–2021 The Apache Software Foundation. All rights reserved.