public class TestOrderedBytes extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static int[] |
BD_LENGTHS |
(package private) static BigDecimal[] |
BD_VALS |
static HBaseClassTestRule |
CLASS_RULE |
(package private) static int[] |
D_LENGTHS |
(package private) static Double[] |
D_VALS |
(package private) static int[] |
I_LENGTHS |
(package private) static Long[] |
I_VALS |
(package private) static double |
MIN_EPSILON |
Constructor and Description |
---|
TestOrderedBytes() |
Modifier and Type | Method and Description |
---|---|
void |
testBlobCopy()
Test BlobCopy encoding.
|
void |
testBlobCopyNoZeroBytes()
Assert invalid input byte[] are rejected by BlobCopy
|
void |
testBlobVar()
Test BlobVar encoding.
|
void |
testBlobVarLencodedLength()
Test length estimation algorithms for BlobVar encoding.
|
void |
testEncodeDecodeMatch()
Test if the data encoded by our encoding function can be decoded correctly.
|
void |
testEncodedValueCheck()
Test encoded value check
|
void |
testFloat32()
Test float32 encoding.
|
void |
testFloat64()
Test float64 encoding.
|
void |
testInt16()
Test int16 encoding.
|
void |
testInt32()
Test int32 encoding.
|
void |
testInt64()
Test int64 encoding.
|
void |
testInt8()
Test int8 encoding.
|
void |
testNumericInt()
Test integer encoding.
|
void |
testNumericIntRealCompatibility()
Verify Real and Int encodings are compatible.
|
void |
testNumericOther()
Fill gaps in Numeric encoding testing.
|
void |
testNumericReal()
Test real encoding.
|
void |
testSkip()
Test generic skip logic
|
void |
testString()
Test string encoding.
|
void |
testStringNoNullChars() |
void |
testVaruint64Boundaries()
Tests the variable uint64 encoding.
|
void |
testVerifyTestIntegrity()
Expected lengths of equivalent values should match
|
public static final HBaseClassTestRule CLASS_RULE
static final int[] I_LENGTHS
static final int[] D_LENGTHS
static final BigDecimal[] BD_VALS
static final int[] BD_LENGTHS
static final double MIN_EPSILON
public TestOrderedBytes()
public void testVerifyTestIntegrity()
public void testVaruint64Boundaries()
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
public void testNumericInt()
public void testNumericReal()
public void testNumericOther()
public void testNumericIntRealCompatibility()
public void testInt8()
public void testInt16()
public void testInt32()
public void testInt64()
public void testFloat32()
public void testFloat64()
public void testString()
public void testStringNoNullChars()
public void testBlobVarLencodedLength()
public void testBlobVar()
public void testBlobCopy()
public void testBlobCopyNoZeroBytes()
public void testSkip()
public void testEncodedValueCheck()
public void testEncodeDecodeMatch()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.