Package org.apache.hadoop.hbase.util
Class TestOrderedBytes
java.lang.Object
org.apache.hadoop.hbase.util.TestOrderedBytes
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int[](package private) static final BigDecimal[]static final HBaseClassTestRule(package private) static final int[](package private) static final Double[](package private) static final int[](package private) static final Long[](package private) static final double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTest BlobCopy encoding.voidAssert invalid input byte[] are rejected by BlobCopyvoidTest BlobVar encoding.voidTest length estimation algorithms for BlobVar encoding.voidTest if the data encoded by our encoding function can be decoded correctly.voidTest encoded value checkvoidTest float32 encoding.voidTest float64 encoding.voidTest int16 encoding.voidTest int32 encoding.voidTest int64 encoding.voidtestInt8()Test int8 encoding.voidTest integer encoding.voidVerify Real and Int encodings are compatible.voidFill gaps in Numeric encoding testing.voidTest real encoding.voidtestSkip()Test generic skip logicvoidTest string encoding.voidvoidTests the variable uint64 encoding.voidExpected lengths of equivalent values should match
-
Field Details
-
CLASS_RULE
-
I_VALS
-
I_LENGTHS
-
D_VALS
-
D_LENGTHS
-
BD_VALS
-
BD_LENGTHS
-
MIN_EPSILON
- See Also:
-
-
Constructor Details
-
TestOrderedBytes
public TestOrderedBytes()
-
-
Method Details
-
testVerifyTestIntegrity
Expected lengths of equivalent values should match -
testVaruint64Boundaries
Tests the variable uint64 encoding.Building sqlite4 with -DVARINT_TOOL provides this reference:
$ ./varint_tool 240 2287 67823 16777215 4294967295 1099511627775 281474976710655 72057594037927935 18446744073709551615
240 = f0
2287 = f8ff
67823 = f9ffff
16777215 = faffffff
4294967295 = fbffffffff
1099511627775 = fcffffffffff
281474976710655 = fdffffffffffff
72057594037927935 = feffffffffffffff
9223372036854775807 = ff7fffffffffffffff (Long.MAX_VAL)
9223372036854775808 = ff8000000000000000 (Long.MIN_VAL)
18446744073709551615 = ffffffffffffffffff -
testNumericInt
Test integer encoding. Example input values come from reference wiki page. -
testNumericReal
Test real encoding. Example input values come from reference wiki page. -
testNumericOther
Fill gaps in Numeric encoding testing. -
testNumericIntRealCompatibility
Verify Real and Int encodings are compatible. -
testInt8
Test int8 encoding. -
testInt16
Test int16 encoding. -
testInt32
Test int32 encoding. -
testInt64
Test int64 encoding. -
testFloat32
Test float32 encoding. -
testFloat64
Test float64 encoding. -
testString
Test string encoding. -
testStringNoNullChars
-
testBlobVarLencodedLength
Test length estimation algorithms for BlobVar encoding. Does not cover 0-length input case properly. -
testBlobVar
Test BlobVar encoding. -
testBlobCopy
Test BlobCopy encoding. -
testBlobCopyNoZeroBytes
Assert invalid input byte[] are rejected by BlobCopy -
testSkip
Test generic skip logic -
testEncodedValueCheck
Test encoded value check -
testEncodeDecodeMatch
Test if the data encoded by our encoding function can be decoded correctly.
-