public class TestLexiconKeyBuilder extends TestCase2
LexiconKeyBuilder
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestLexiconKeyBuilder() |
TestLexiconKeyBuilder(String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
setUp() |
protected void |
tearDown() |
void |
test_blankNode() |
void |
test_consistencyIssue()
This is an odd issue someone reported for the trunk.
|
void |
test_datatype_unknown()
Verify an unknown datatype URI is coded.
|
void |
test_datatypeLiteral_xsd_boolean() |
void |
test_datatypeLiteral_xsd_double() |
void |
test_datatypeLiteral_xsd_float_not_double()
Verify that some value spaces are disjoint.
|
void |
test_datatypeLiteral_xsd_float() |
void |
test_datatypeLiteral_xsd_int_not_double_or_float()
Verify that some value spaces are disjoint.
|
void |
test_datatypeLiteral_xsd_int() |
void |
test_disjoint_value_space()
Verify that the value spaces for long, int, short and byte are disjoint.
|
void |
test_encodeDecodeCodeByte()
Tests encode of a key and the decode of its "code" byte.
|
void |
test_keyOrder()
Tests the gross ordering over the different kinds of
Value s but
deliberately does not pay attention to the sort key ordering for string
data. |
void |
test_languageCodeLiteral() |
void |
test_plain_vs_languageCode_literal() |
void |
test_plainLiteral() |
void |
test_termTypeOrder()
Test verifies the ordering among URIs, Literals, and BNodes.
|
void |
test_uri() |
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, logProperties
assertEquals, 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, toString
public TestLexiconKeyBuilder()
public TestLexiconKeyBuilder(String name)
name
- protected void setUp() throws Exception
Note: The LexiconKeyBuilder
will wind up configured with the
default Locale
unless that gets overridden by
TestCase2.getProperties()
setUp
in class junit.framework.TestCase
Exception
protected void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
public void test_encodeDecodeCodeByte()
ITermIndexCodes
public void test_keyOrder()
Value
s but
deliberately does not pay attention to the sort key ordering for string
data.ITermIndexCodes
public void test_uri()
public void test_plainLiteral()
public void test_languageCodeLiteral()
public void test_plain_vs_languageCode_literal()
public void test_datatype_unknown()
public void test_datatypeLiteral_xsd_boolean()
public void test_datatypeLiteral_xsd_int()
public void test_disjoint_value_space()
public void test_datatypeLiteral_xsd_float()
public void test_datatypeLiteral_xsd_double()
public void test_datatypeLiteral_xsd_int_not_double_or_float()
public void test_datatypeLiteral_xsd_float_not_double()
public void test_blankNode()
public void test_termTypeOrder()
public void test_consistencyIssue()
Brian McCarthy
, but it appears
that one of the two versions has a leading bell character when you decode
the Unicode byte[]. I think that this is actually an issue with the
Locale
and the Unicode sort key generation. If KeyBuilder
as configured on the system generates Unicode sort keys which compare as
EQUAL for these two inputs then that will cause the lexicon to report an
"apparent" inconsistency. In fact, what we probably need to do is just
disable the inconsistency check in the lexicon.
ERROR: com.bigdata.rdf.lexicon.Id2TermWriteProc.apply(Id2TermWriteProc.java:205): val=[0, 2, 0, 14, 66, 114, 105, 97, 110, 32, 77, 99, 67, 97, 114, 116, 104, 121] ERROR: com.bigdata.rdf.lexicon.Id2TermWriteProc.apply(Id2TermWriteProc.java:206): oldval=[0, 2, 0, 15, 127, 66, 114, 105, 97, 110, 32, 77, 99, 67, 97, 114, 116, 104, 121]
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.