public class TestKeyBuilder extends AbstractSearchTest
FullTextIndex
.TestCase2.MyProperties, TestCase2.RandomType
_randomType, log
Constructor and Description |
---|
TestKeyBuilder() |
TestKeyBuilder(String arg0) |
Modifier and Type | Method and Description |
---|---|
protected void |
doKeyOrderTest(FullTextIndex<Long> ndx,
long docId,
int fieldId,
boolean fieldsEnabled) |
protected IKeyBuilder |
getKeyBuilder()
Return a suitable
IKeyBuilder . |
protected void |
GT(byte[] a,
byte[] b)
Succeeds iff a GT b.
|
protected void |
LT(byte[] a,
byte[] b)
Succeeds iff a LT b.
|
void |
test_keyOrder()
Unit test verifies the relative sort order of a term and its successor,
of a prefix of that term and its successor, and that the prefix and the
successor of the prefix are ordered before and after the term and its
successor respectively.
|
checkConfig, checkConfig, comparisonTest, getAnalyzer, getTokenStream, tearDown
getDelegate, getOurDelegate, getProperties, getStore, getStore, reopenStore, setDelegate, setUp
checkIfProxy, fail, getRandomData, setUp, tearDown
assertCondition, assertCondition, assertEquals, assertEquals, getBytes, getPort, getRandomData, getRandomData
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, 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 TestKeyBuilder()
public TestKeyBuilder(String arg0)
arg0
- protected IKeyBuilder getKeyBuilder()
IKeyBuilder
.
Note: Just like the FullTextIndex
, this overrides the collator
strength property to use the configured value or the default for the text
indexer rather than the standard default. This is done because you
typically want to recognize only Primary differences for text search
while you often want to recognize more differences when generating keys
for a B+Tree.
public void test_keyOrder()
protected void doKeyOrderTest(FullTextIndex<Long> ndx, long docId, int fieldId, boolean fieldsEnabled)
protected void LT(byte[] a, byte[] b)
a
- b
- protected void GT(byte[] a, byte[] b)
a
- b
- Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.