Package org.apache.hadoop.hbase.util
Class TestBytes
java.lang.Object
org.apache.hadoop.hbase.util.TestBytes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]bytesWithOffset(byte[] src) private static booleancheckTestIncrementBytes(long val, long amount) private static voidsetUnsafe(boolean value) voidtestAdd()voidvoidvoidtestCopy()voidprivate static voidtestFindCommonPrefix(boolean unsafe) voidvoidvoidvoidvoidvoidvoidvoidvoidprivate static voidtestShort(boolean unsafe) voidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidtestZero()private voidverifyReversibleForBytes(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
-