public class TestPipelineJoin extends TestCase2
PipelineJoin operator.
Note: The logic to map binding sets over shards is tested independently.
TestCase2.MyProperties, TestCase2.RandomType_randomType, log| Constructor and Description |
|---|
TestPipelineJoin() |
TestPipelineJoin(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.
|
protected ThickAsynchronousIterator<IBindingSet[]> |
newBindingSetIterator(IBindingSet bindingSet)
Return an
IAsynchronousIterator that will read a single
IBindingSet. |
void |
setUp() |
void |
tearDown() |
void |
test_join_constraint()
Unit test for a join with an
IConstraint. |
void |
test_join_duplicateElimination()
Unit test for a pipeline join in which we expect duplicate access paths to
be eliminated.
|
void |
test_join_noSharedVariables_emptySourceSolution()
Unit test for a pipeline join without shared variables and fed by a
single empty binding set.
|
void |
test_join_noSharedVariables_multipleSourceSolutions()
Unit test for a join without shared variables with multiple source
solutions.
|
void |
test_join_selectVariables()
Unit test for a join which selects a subset of the variables to pass
along.
|
void |
test_join_sharedVariables_multipleSourceSolutions()
Unit test for a join with shared variables with multiple source solutions
(the source solutions already have a bound value for the shared variable
so the join turns into a point test).
|
void |
test_optionalJoin_withAltSink()
Unit test for an optional
PipelineJoin when the
alternative sink is specified. |
void |
test_optionalJoin_withConstraint()
Unit tests for optional joins with a constraint.
|
void |
test_optionalJoin()
Unit tests for optional joins.
|
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, 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 TestPipelineJoin()
public TestPipelineJoin(String name)
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 TestCase2Properties 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
setUp in class junit.framework.TestCaseExceptionpublic void tearDown()
throws Exception
tearDown in class junit.framework.TestCaseExceptionprotected ThickAsynchronousIterator<IBindingSet[]> newBindingSetIterator(IBindingSet bindingSet)
IAsynchronousIterator that will read a single
IBindingSet.bindingSet - the binding set.public void test_join_noSharedVariables_emptySourceSolution()
throws InterruptedException,
ExecutionException
public void test_join_noSharedVariables_multipleSourceSolutions()
throws InterruptedException,
ExecutionException
public void test_join_sharedVariables_multipleSourceSolutions()
throws InterruptedException,
ExecutionException
public void test_join_duplicateElimination()
throws InterruptedException,
ExecutionException
public void test_join_constraint()
throws InterruptedException,
ExecutionException
IConstraint. The constraint is used
to filter out one of the solutions where "Mary" is the present in the
first column of the relation.public void test_join_selectVariables()
throws InterruptedException,
ExecutionException
Note: The order of the expected solutions for this test depends on the order of the keys associated with the tuples in the relation. Since the key is [name,value], the result order is based on this tuple order:
E("John", "Mary")
E("Leon", "Paul")
E("Mary", "John")
E("Mary", "Paul")
E("Paul", "Leon")
public void test_optionalJoin()
throws InterruptedException,
ExecutionException
public void test_optionalJoin_withAltSink()
throws InterruptedException,
ExecutionException
PipelineJoin when the
alternative sink is specified.public void test_optionalJoin_withConstraint()
throws InterruptedException,
ExecutionException
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.