public class TestByteBufferUtils extends Object
Constructor and Description |
---|
TestByteBufferUtils() |
Modifier and Type | Method and Description |
---|---|
void |
setUp()
Create an array with sample data.
|
void |
testArePartEqual()
Test if we are comparing equal bytes.
|
void |
testCompressedInt()
Test 7-bit encoding of integers.
|
void |
testConsistencyWithHadoopVLong() |
void |
testCopyFromBuffer()
Test copying from buffer.
|
void |
testCopyFromStream()
Test copying data from stream.
|
void |
testCopyToStreamWithOffset()
Test copying to stream from buffer with offset.
|
void |
testIntFitsIn()
Test how much bytes we need to store integer.
|
void |
testLongFitsIn()
Test how much bytes we need to store long.
|
void |
testMoveBufferToStream()
Test copying to stream from buffer.
|
void |
testPutInt()
Test serializing int to bytes
|
void |
testReadWriteVLong() |
void |
testToBytes() |
public void setUp()
public void testReadWriteVLong()
public void testConsistencyWithHadoopVLong() throws IOException
IOException
public void testMoveBufferToStream()
public void testCopyToStreamWithOffset() throws IOException
IOException
- On test failure.public void testCopyFromStream() throws IOException
IOException
- On test failure.public void testCopyFromBuffer()
public void testCompressedInt() throws IOException
IOException
- On test failure.public void testIntFitsIn()
public void testLongFitsIn()
public void testArePartEqual()
public void testPutInt()
public void testToBytes()