public class TestHashJoin extends AbstractDataDrivenSPARQLTestCase
AbstractDataDrivenSPARQLTestCase.TestHelper, AbstractDataDrivenSPARQLTestCase.UpdateTestHelper
AbstractDataAndSPARQLTestCase.AbsHelper
TestCase2.MyProperties, TestCase2.RandomType
baseURI, store, valueFactory
_randomType
Constructor and Description |
---|
TestHashJoin() |
TestHashJoin(String name) |
Modifier and Type | Method and Description |
---|---|
void |
test_hash_join_1()
SELECT ?x ?o
WHERE {
# Turn off the query optimizer for this query so we can control the order
# in which the BGPs will be evaluated.
|
void |
test_hash_join_1b()
Variant on
test_hash_join_1() where we force the use of the
HTree . |
void |
test_hash_join_2()
SELECT ?x ?o
WHERE {
# Turn off the query optimizer for this query so we can control the order
# in which the BGPs will be evaluated.
|
assertSameAST, asSet, asSet, asSet, asSet, asSet, enableDeleteMarkersInIndes, getBOpContext, getProperties, getStore, makeIV, setUp, tearDown
assertSameSolutions, assertSameSolutions, assertSameSolutions, assertSameSolutionsAnyOrder, assertSameSolutionsAnyOrder, assertSameSolutionsAnyOrder, assertSameSolutionsAnyOrder, assertSameSolutionsAnyOrder, assertSameSolutionsAnyOrder, compareGraphs, compareTupleQueryResults, diff
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 TestHashJoin()
public TestHashJoin(String name)
name
- public void test_hash_join_1() throws Exception
SELECT ?x ?o WHERE { # Turn off the query optimizer for this query so we can control the order # in which the BGPs will be evaluated. hint:Query hint:optimizer "None" . # Force the use of the JVM hash joins. hint:Query hint:nativeHashJoins "false" . ?x rdf:type foaf:Person . ?x rdfs:label ?o . # Request a hash join for the rdfs:label BGP. hint:Prior hint:hashJoin "true" . }A simple SELECT query with a query hint which should force the choice of a hash join for one of the predicates.
Exception
public void test_hash_join_1b() throws Exception
test_hash_join_1()
where we force the use of the
HTree
.Exception
public void test_hash_join_2() throws Exception
SELECT ?x ?o WHERE { # Turn off the query optimizer for this query so we can control the order # in which the BGPs will be evaluated. hint:Query hint:optimizer "None" . ?x rdf:type foaf:Person . ?x rdfs:label ?o . # Request a hash join for the rdfs:label BGP. hint:Prior hint:hashJoin "true" . hint:Prior hint:com.bigdata.bop.IPredicate.keyOrder "PCSO" . # default is POCS }A variant of
test_hash_join_1()
where a hint is used to override
the SPOKeyOrder
for the hash join.Exception
Copyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.