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
Exception
public void testByteBufferCreation() throws Exception
Exception
public void testByteBufferCreation1() throws Exception
Exception
private 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
IOException
public void testArrayIO() throws IOException
IOException
private 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–2020 The Apache Software Foundation. All rights reserved.