Class BottomUpJoinIterator
- java.lang.Object
-
- org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,X>
-
- org.eclipse.rdf4j.common.iteration.LookAheadIteration<BindingSet,QueryEvaluationException>
-
- org.eclipse.rdf4j.query.algebra.evaluation.iterator.BottomUpJoinIterator
-
- All Implemented Interfaces:
java.lang.AutoCloseable,CloseableIteration<BindingSet,QueryEvaluationException>,Iteration<BindingSet,QueryEvaluationException>
@Deprecated public class BottomUpJoinIterator extends LookAheadIteration<BindingSet,QueryEvaluationException>
Deprecated.replaced by HashJoinIterationJoin Iterator that executes a basic bottom-up hash-join algorithm. To be used in cases where interleaved iteration joining is not appropriate (e.g. when the join arguments are subselects).
-
-
Field Summary
Fields Modifier and Type Field Description private BindingSetcurrentScanElemDeprecated.private java.util.Map<BindingSet,java.util.List<BindingSet>>hashTableDeprecated.private java.util.List<BindingSet>hashTableValuesDeprecated.private java.util.Set<java.lang.String>joinAttributesDeprecated.private CloseableIteration<BindingSet,QueryEvaluationException>leftIterDeprecated.private CloseableIteration<BindingSet,QueryEvaluationException>restIterDeprecated.private CloseableIteration<BindingSet,QueryEvaluationException>rightIterDeprecated.private java.util.List<BindingSet>scanListDeprecated.
-
Constructor Summary
Constructors Constructor Description BottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected voidadd(java.util.List<BindingSet> leftArgResults, BindingSet b)Deprecated.protected voidaddAll(java.util.List<BindingSet> hashTableValues, java.util.List<BindingSet> values)Deprecated.private BindingSetcalcKey(BindingSet bindings, java.util.Set<java.lang.String> commonVars)Deprecated.protected longclearHashTable()Deprecated.protected BindingSetgetNextElement()Deprecated.Gets the next element.protected voidhandleClose()Deprecated.Called byAbstractCloseableIteration.close()when it is called for the first time.protected java.util.List<BindingSet>makeList()Deprecated.Utility methods to make it easier to inserted custom store dependent listprotected java.util.List<BindingSet>makeList(java.util.List<BindingSet> key)Deprecated.Utility methods to make it easier to inserted custom store dependent listprotected java.util.Map<BindingSet,java.util.List<BindingSet>>makeMap()Deprecated.Utility methods to make it easier to inserted custom store dependent mapsprotected voidput(java.util.Map<BindingSet,java.util.List<BindingSet>> hashTable, BindingSet hashKey, java.util.List<BindingSet> hashValue)Deprecated.protected BindingSetremoveFirstElement(java.util.List<BindingSet> list)Deprecated.Remove the first (0 index) element from a BindingSet list.private voidsetupHashTable()Deprecated.-
Methods inherited from class org.eclipse.rdf4j.common.iteration.LookAheadIteration
hasNext, next, remove
-
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
-
-
-
Field Detail
-
leftIter
private final CloseableIteration<BindingSet,QueryEvaluationException> leftIter
Deprecated.
-
rightIter
private final CloseableIteration<BindingSet,QueryEvaluationException> rightIter
Deprecated.
-
scanList
private java.util.List<BindingSet> scanList
Deprecated.
-
restIter
private CloseableIteration<BindingSet,QueryEvaluationException> restIter
Deprecated.
-
hashTable
private java.util.Map<BindingSet,java.util.List<BindingSet>> hashTable
Deprecated.
-
joinAttributes
private final java.util.Set<java.lang.String> joinAttributes
Deprecated.
-
currentScanElem
private BindingSet currentScanElem
Deprecated.
-
hashTableValues
private java.util.List<BindingSet> hashTableValues
Deprecated.
-
-
Constructor Detail
-
BottomUpJoinIterator
public BottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException
Deprecated.- Throws:
QueryEvaluationException
-
-
Method Detail
-
getNextElement
protected BindingSet getNextElement() throws QueryEvaluationException
Deprecated.Description copied from class:LookAheadIterationGets the next element. Subclasses should implement this method so that it returns the next element.- Specified by:
getNextElementin classLookAheadIteration<BindingSet,QueryEvaluationException>- Returns:
- The next element, or null if no more elements are available.
- Throws:
QueryEvaluationException
-
handleClose
protected void handleClose() throws QueryEvaluationExceptionDeprecated.Description copied from class:AbstractCloseableIterationCalled byAbstractCloseableIteration.close()when it is called for the first time. This method is only called once on each iteration. By default, this method does nothing.- Overrides:
handleClosein classLookAheadIteration<BindingSet,QueryEvaluationException>- Throws:
QueryEvaluationException
-
clearHashTable
protected long clearHashTable()
Deprecated.- Returns:
- the size that the hashtable had before clearing it.
-
calcKey
private BindingSet calcKey(BindingSet bindings, java.util.Set<java.lang.String> commonVars)
Deprecated.
-
setupHashTable
private void setupHashTable() throws QueryEvaluationExceptionDeprecated.- Throws:
QueryEvaluationException
-
put
protected void put(java.util.Map<BindingSet,java.util.List<BindingSet>> hashTable, BindingSet hashKey, java.util.List<BindingSet> hashValue) throws QueryEvaluationException
Deprecated.- Throws:
QueryEvaluationException
-
addAll
protected void addAll(java.util.List<BindingSet> hashTableValues, java.util.List<BindingSet> values) throws QueryEvaluationException
Deprecated.- Throws:
QueryEvaluationException
-
add
protected void add(java.util.List<BindingSet> leftArgResults, BindingSet b) throws QueryEvaluationException
Deprecated.- Throws:
QueryEvaluationException
-
makeMap
protected java.util.Map<BindingSet,java.util.List<BindingSet>> makeMap()
Deprecated.Utility methods to make it easier to inserted custom store dependent maps- Returns:
- map
-
makeList
protected java.util.List<BindingSet> makeList()
Deprecated.Utility methods to make it easier to inserted custom store dependent list- Returns:
- list
-
makeList
protected java.util.List<BindingSet> makeList(java.util.List<BindingSet> key)
Deprecated.Utility methods to make it easier to inserted custom store dependent list- Returns:
- list
-
removeFirstElement
protected BindingSet removeFirstElement(java.util.List<BindingSet> list) throws QueryEvaluationException
Deprecated.Remove the first (0 index) element from a BindingSet list.- Parameters:
list- which is worked on.- Returns:
- the removed BindingSet
- Throws:
QueryEvaluationException
-
-