public class TestKeyEncodeDecode extends TestCase2
Schema.fromKey(com.bigdata.btree.keys.IKeyBuilder, Object), by
AtomicRowWriteRead, and as decoded by the KeyDecoder.
Note: Not all information can be fully decoded. In particular, the exact
schema name and the value of the primary key for Unicode KeyTypes
can not be directly recovered from the key.
TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestKeyEncodeDecode() |
TestKeyEncodeDecode(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doKeyDecodeTest(IKeyBuilder keyBuilder)
Test helper verifies that we can correctly locate the start of the column
name and decode the key when using a given
IKeyBuilder. |
void |
test_keyDecode_ASCII()
Unit test verifies that we can correctly locate the start of the column
name and decode the key when using
CollatorEnum.ASCII. |
void |
test_keyDecode_ICU()
Unit test verifies that we can correctly locate the start of the column
name and decode the key when using
CollatorEnum.ICU. |
void |
test_keyDecode_JDK()
Unit test verifies that we can correctly locate the start of the column
name and decode the key when using
CollatorEnum.JDK. |
void |
test_primitive_long()
Test for primitive data types where we can round trip the primary key
value.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEqualsWithinUlps, assertSameArray, assertSameArray, assertSameBigDecimal, assertSameBigDecimal, assertSameBigInteger, assertSameBigInteger, assertSameIterator, assertSameIterator, assertSameIteratorAnyOrder, assertSameIteratorAnyOrder, assertSameValue, assertSameValue, assertZeroUlps, assertZeroUlps, fail, getInnerCause, getNormalInt, getProjectBuildPath, getProperties, getRandomObject, getRandomObject, getRandomOrder, getRandomString, getTestInputStream, getTestResource, getTestResource, getUlps, getUlps, isDEBUG, isDEBUG, isINFO, isINFO, isInnerCause, logPropertiesassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic TestKeyEncodeDecode()
public TestKeyEncodeDecode(String name)
public void test_primitive_long()
public void test_keyDecode_ICU()
CollatorEnum.ICU.public void test_keyDecode_ASCII()
CollatorEnum.ASCII.public void test_keyDecode_JDK()
CollatorEnum.JDK.
Note: The JDK CollationKey embeds nul bytes in its
Unicode sort keys.
protected void doKeyDecodeTest(IKeyBuilder keyBuilder)
IKeyBuilder.Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.