public class TestRangeQuery extends AbstractEmbeddedFederationTestCase
IRangeQuery API.TestCase2.MyProperties, TestCase2.RandomTypeclient, dataService0, dataService1, fed, metadataServicekeyBuilder, log, r_randomType| Constructor and Description |
|---|
TestRangeQuery() |
TestRangeQuery(String name) |
| Modifier and Type | Method and Description |
|---|---|
static <E> void |
assertSameIteratorAnyOrder(ITuple<E>[] expected,
ITupleIterator<E> actual)
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
|
static <E> void |
assertSameIteratorAnyOrder(String msg,
ITuple<E>[] expected,
ITupleIterator<E> actual)
Verifies that the iterator visits the specified objects in some arbitrary
ordering and that the iterator is exhausted once all expected objects
have been visited.
|
static boolean |
sameTuple(ITuple<?> expected,
ITuple<?> actual)
Compares two tuples for equality based on their data (flags, keys,
values, deleted marker, and version timestamp).
|
void |
test_parallelRangeIterator()
Basic unit tests for the parallel range iterator.
|
void |
test_rangeCount_staticPartitions_01()
Range count tests with two (2) static partitions where the successor of a
key is found in the next partition (tests the fence post for the mapping
of the rangeCount operation over the different partitions).
|
void |
test_rangeQuery_staticPartitions_unbounded_1entry_2partitions_01()
Test unbounded range query with one entry in the index and two index
partitions.
|
void |
test_rangeQuery_staticPartitions_unbounded_1entry_2partitions_02()
Test unbounded range query with one entry in the index and two index
partitions.
|
void |
test_rangeQuery_staticPartitions_unbounded_2entries_2partitions_01()
Test unbounded range query with two entries in the index and two index
partitions.
|
void |
test_rangeQuery_staticPartitions_unbounded_2entries_2partitions_02()
Test unbounded range query with two entries in the index and two index
partitions.
|
void |
test_rangeQuery_staticPartitions_unbounded_emptyIndex_2partitions()
Test unbounded range query with an empty index and two partitions.
|
void |
test_removeAll_limit1_twoPartitions()
Test of
IRangeQuery.REMOVEALL using a limit (capacity := 1). |
void |
test_removeAll()
Test of
IRangeQuery.REMOVEALL using a filter. |
void |
test_reverseScan()
Test the ability to scan a partitioned index in forward and reverse
order.
|
assertEquals, assertEquals, assertEquals, assertIndexRegistered, awaitAsynchronousOverflow, getPartitionCount, getProperties, setUp, tearDownassertChildKeys, assertEntryCounts, assertKeys, assertKeys, assertKeys, assertSameAbstractNodeData, assertSameBTree, assertSameEntryIterator, assertSameEntryIterator, assertSameIterator, assertSameIterator, assertSameLeaf, assertSameLeafData, assertSameNode, assertSameNodeData, assertSameNodeOrLeaf, assertSameRaba, assertValues, assertValues, doEntryIteratorTest, doInsertKeySequenceTest, doInsertLookupRemoveStressTest, doInsertRandomKeySequenceTest, doInsertRandomKeySequenceTest, doInsertRandomSparseKeySequenceTest, doKnownKeySequenceTest, doRandomIndexOfTest, doRandomKeyInsertTest, doRandomLookupTest, doRemoveStructureStressTest, doSplitTest, doSplitWithDecreasingKeySequence, doSplitWithIncreasingKeySequence, doSplitWithRandomDenseKeySequence, getBTree, getBTree, getKeysAndValues, getRandomKeys, getRandomKeyValues, i2k, nextLong, useRawRecordsassertEquals, 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, 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, toStringpublic TestRangeQuery()
public TestRangeQuery(String name)
public void test_rangeCount_staticPartitions_01()
throws IOException
IOExceptionpublic void test_rangeQuery_staticPartitions_unbounded_emptyIndex_2partitions()
throws IOException
IOExceptionpublic void test_rangeQuery_staticPartitions_unbounded_1entry_2partitions_01()
throws IOException
IOExceptionpublic void test_rangeQuery_staticPartitions_unbounded_1entry_2partitions_02()
throws IOException
IOExceptionpublic void test_rangeQuery_staticPartitions_unbounded_2entries_2partitions_01()
throws IOException
IOExceptionpublic void test_rangeQuery_staticPartitions_unbounded_2entries_2partitions_02()
throws IOException
IOExceptionpublic void test_removeAll_limit1_twoPartitions()
throws IOException
IRangeQuery.REMOVEALL using a limit (capacity := 1). This
form of the iterator is used to support queue constructs since the delete
is performed on the unisolated index. The state of the index is verified
afterwards.IOExceptionpublic void test_removeAll()
throws IOException
IRangeQuery.REMOVEALL using a filter. Only the even keys
are deleted. The state of the index is verified afterwards.IOExceptionpublic void test_reverseScan()
throws IOException
IOExceptionpublic void test_parallelRangeIterator()
public static <E> void assertSameIteratorAnyOrder(ITuple<E>[] expected, ITupleIterator<E> actual)
public static <E> void assertSameIteratorAnyOrder(String msg, ITuple<E>[] expected, ITupleIterator<E> actual)
public static boolean sameTuple(ITuple<?> expected, ITuple<?> actual)
Note: This will fail if you apply it to tuples reported by
ITupleIterators whose DELETE flag was different since it verifies
the DELETE flag state and that is a property of the iterator NOT the
tuple. Whether or not a tuple is deleted is detected using
ITuple.isDeletedVersion().
expected - actual - Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.