Package org.apache.hadoop.hbase.util
Class TestBytes
java.lang.Object
org.apache.hadoop.hbase.util.TestBytes
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
bytesWithOffset
(byte[] src) private static boolean
checkTestIncrementBytes
(long val, long amount) private static void
setUnsafe
(boolean value) void
testAdd()
void
void
void
testCopy()
void
private static void
testFindCommonPrefix
(boolean unsafe) void
void
void
void
void
void
void
void
void
private static void
testShort
(boolean unsafe) void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
void
testZero()
private void
verifyReversibleForBytes
(byte[] originalBytes)
-
Field Details
-
CLASS_RULE
-
-
Constructor Details
-
TestBytes
public TestBytes()
-
-
Method Details
-
setUnsafe
- Throws:
Exception
-
testShort
- Throws:
Exception
-
testShortUnsafe
- Throws:
Exception
-
testShort
- Throws:
Exception
-
testNullHashCode
-
testAdd
-
testSplit
-
testSplit2
-
testSplit3
-
testToInt
-
testToLong
-
testToFloat
-
testToDouble
-
testToBigDecimal
-
bytesWithOffset
-
testToBytesForByteBuffer
-
testGetBytesForByteBuffer
-
testReadAsVLong
- Throws:
Exception
-
testToStringBinaryForBytes
-
testToStringBinaryForArrayBasedByteBuffer
-
testToStringBinaryForReadOnlyByteBuffer
-
testBinarySearch
-
testToStringBytesBinaryReversible
-
verifyReversibleForBytes
-
testStartsWith
-
testIncrementBytes
-
checkTestIncrementBytes
-
testFixedSizeString
- Throws:
IOException
-
testCopy
-
testToBytesBinaryTrailingBackslashes
-
testToStringBinary_toBytesBinary_Reversable
-
testUnsignedBinarySearch
-
testUnsignedIncrement
-
testIndexOf
-
testContains
-
testZero
-
testPutBuffer
-
testToFromHex
-
testFindCommonPrefix
- Throws:
Exception
-
testFindCommonPrefixUnsafe
- Throws:
Exception
-
testFindCommonPrefix
- Throws:
Exception
-