public abstract class AbstractHashJoinOpTestCase extends TestCase2
Modifier and Type | Class and Description |
---|---|
static class |
AbstractHashJoinOpTestCase.JoinSetup
Setup for a problem used by many of the join test suites.
|
TestCase2.MyProperties, TestCase2.RandomType
Modifier and Type | Field and Description |
---|---|
protected AbstractHashJoinOpTestCase.JoinSetup |
setup |
_randomType, log
Constructor and Description |
---|
AbstractHashJoinOpTestCase() |
AbstractHashJoinOpTestCase(String name) |
Modifier and Type | Method and Description |
---|---|
protected ThickAsynchronousIterator<IBindingSet[]> |
newBindingSetIterator(IBindingSet bindingSet)
Return an
IAsynchronousIterator that will read a single
IBindingSet . |
protected abstract PipelineOp |
newJoin(BOp[] args,
int joinId,
IVariable<IV>[] joinVars,
Predicate<IV> predOp,
UUID queryId,
NV... annotations)
Return a new join operator instance for the test.
|
void |
setUp() |
void |
tearDown() |
void |
test_join_simple_noJoinVars()
Unit test for a simple join.
|
void |
test_join_simple_selectOnly_x() |
void |
test_join_simple_withConstraint() |
void |
test_join_simple()
Unit test for a simple join.
|
void |
test_optionalJoin_and_constraint()
Unit tests for optional joins, including a constraint on solutions which
join.
|
void |
test_optionalJoin_withAltSink()
Unit test for an optional
PipelineJoin when the
alternative sink is specified (simple
variant of the unit test above). |
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
protected AbstractHashJoinOpTestCase.JoinSetup setup
public AbstractHashJoinOpTestCase()
public AbstractHashJoinOpTestCase(String name)
name
- public void setUp() throws Exception
setUp
in class junit.framework.TestCase
Exception
public void tearDown() throws Exception
tearDown
in class junit.framework.TestCase
Exception
protected ThickAsynchronousIterator<IBindingSet[]> newBindingSetIterator(IBindingSet bindingSet)
IAsynchronousIterator
that will read a single
IBindingSet
.bindingSet
- the binding set.protected abstract PipelineOp newJoin(BOp[] args, int joinId, IVariable<IV>[] joinVars, Predicate<IV> predOp, UUID queryId, NV... annotations)
args
- joinId
- joinVars
- predOp
- queryId
- annotations
- public void test_join_simple() throws InterruptedException, ExecutionException
public void test_join_simple_noJoinVars() throws InterruptedException, ExecutionException
For this variant, there are no join variables. We should get exactly the same solutions but the join will do more work.
public void test_join_simple_withConstraint() throws InterruptedException, ExecutionException
public void test_join_simple_selectOnly_x() throws InterruptedException, ExecutionException
public void test_optionalJoin_and_constraint() throws InterruptedException, ExecutionException
public void test_optionalJoin_withAltSink() throws InterruptedException, ExecutionException
PipelineJoin
when the
alternative sink
is specified (simple
variant of the unit test above).Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.