public class TestFederatedQueryEngine extends AbstractEmbeddedFederationTestCase
FederatedQueryEngine running against an
EmbeddedFederation having a single DataService. The data may
be partitioned, but the partitions will live on the same DataService.
Note: You can not use multiple DataServices in this test suite with
the EmbeddedFederation because the services are not sufficiently
distinct based on how they are created. Therefore unit tests against more
than one DataService are located in the bigdata-jini
module.
Note: Distributed query processing generally means that the order in which
the chunks arrive is non-deterministic. Therefore the order of the solutions
can not be checked unless a total order is placed on the solutions using a
SortOp.
-Dlog4j.configuration=bigdata/src/resources/logging/log4j.properties
TestCase2.MyProperties, TestCase2.RandomTypeclient, dataService0, dataService1, fed, metadataServicekeyBuilder, log, r_randomType| Constructor and Description |
|---|
TestFederatedQueryEngine() |
TestFederatedQueryEngine(String name) |
| Modifier and Type | Method and Description |
|---|---|
Properties |
getProperties()
Reads in the configuration properties for the test from a
variety of resources and returns a properties hierarchy.
|
void |
setUp()
Data files are placed into a directory named by the test.
|
void |
tearDown() |
void |
test_query_join_1shard()
Test the ability to run a simple join reading on a single shard.
|
void |
test_query_join_2shards_nothingBoundOnAccessPath_withConstraint()
Test the ability run a simple join which is mapped across two index
partitions.
|
void |
test_query_join_2shards_nothingBoundOnAccessPath()
Test the ability run a simple join which is mapped across two index
partitions.
|
void |
test_query_join2_optionals()
Unit test for optional join.
|
void |
test_query_join2()
Test the ability run a query requiring two joins.
|
void |
test_query_startRun()
Test the ability to run a query which does nothing and produces no
solutions.
|
void |
test_query_startThenSlice_noJoins()
|
void |
test_startStop()
Starts and stops the
QueryEngine, but does not validate the
semantics of shutdown() versus shutdownNow() since we need to be
evaluating query mixes in order to verify the semantics of those
operations. |
assertEquals, assertEquals, assertEquals, assertIndexRegistered, awaitAsynchronousOverflow, getPartitionCountassertChildKeys, 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 TestFederatedQueryEngine()
public TestFederatedQueryEngine(String name)
public Properties getProperties()
TestCase2Properties object, then the lower levels of the
hierarchy are recursively searched.The hierarchy is constructed from the following properties files in the following order. The first property file in this list corresponds to the top of the property hierarchy. The last property file in this list corresponds to the bottom of the property hierarchy. The property resources are:
getProperties in class AbstractEmbeddedFederationTestCaseProperties object that supplies bindings for
property names according to the described hierarchy among
property resources. The returned Properties is NOT
cached.
TODO This does not handle the recursive truncation of the
class name to search for "test.properties" yet.public void setUp()
throws Exception
AbstractEmbeddedFederationTestCasesetUp in class AbstractEmbeddedFederationTestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class AbstractEmbeddedFederationTestCaseExceptionpublic void test_startStop()
throws Exception
QueryEngine, but does not validate the
semantics of shutdown() versus shutdownNow() since we need to be
evaluating query mixes in order to verify the semantics of those
operations.Exceptionpublic void test_query_startRun()
throws Exception
Exceptionpublic void test_query_startThenSlice_noJoins()
throws Exception
StartOp to copy some binding sets through a
SliceOp without involving any joins or access path reads. For
this test, the binding sets never leave the query controller.Exceptionpublic void test_query_join_2shards_nothingBoundOnAccessPath()
throws Exception
Exceptionpublic void test_query_join_2shards_nothingBoundOnAccessPath_withConstraint()
throws Exception
Exceptionpublic void test_query_join_1shard()
throws Exception
Exceptionpublic void test_query_join2()
throws Exception
Exceptionpublic void test_query_join2_optionals()
throws Exception
SliceOp. The 2nd join is marked as optional. Intermediate results
which do not succeed on the optional join are forwarded to the
SliceOp which is the target specified by the
PipelineOp.Annotations#ALT_SINK_REF.ExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.