Class BottomUpJoinIterator
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.common.iteration.LookAheadIteration<BindingSet, QueryEvaluationException>
org.eclipse.rdf4j.query.algebra.evaluation.iterator.BottomUpJoinIterator
- All Implemented Interfaces:
AutoCloseable, CloseableIteration<BindingSet, QueryEvaluationException>, Iteration<BindingSet, QueryEvaluationException>
@Deprecated
public class BottomUpJoinIterator
extends LookAheadIteration<BindingSet, QueryEvaluationException>
Deprecated.
replaced by HashJoinIteration
Join 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
FieldsModifier and TypeFieldDescriptionprivate BindingSetDeprecated.private Map<BindingSet, List<BindingSet>> Deprecated.private List<BindingSet> Deprecated.Deprecated.private final CloseableIteration<BindingSet, QueryEvaluationException> Deprecated.Deprecated.private final CloseableIteration<BindingSet, QueryEvaluationException> Deprecated.private List<BindingSet> Deprecated. -
Constructor Summary
ConstructorsConstructorDescriptionBottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadd(List<BindingSet> leftArgResults, BindingSet b) Deprecated.protected voidaddAll(List<BindingSet> hashTableValues, List<BindingSet> values) Deprecated.private BindingSetcalcKey(BindingSet bindings, Set<String> commonVars) Deprecated.protected longDeprecated.protected BindingSetDeprecated.Gets the next element.protected voidDeprecated.Called byAbstractCloseableIteration.close()when it is called for the first time.protected List<BindingSet> makeList()Deprecated.Utility methods to make it easier to inserted custom store dependent listprotected List<BindingSet> makeList(List<BindingSet> key) Deprecated.Utility methods to make it easier to inserted custom store dependent listprotected Map<BindingSet, List<BindingSet>> makeMap()Deprecated.Utility methods to make it easier to inserted custom store dependent mapsprotected voidput(Map<BindingSet, List<BindingSet>> hashTable, BindingSet hashKey, List<BindingSet> hashValue) Deprecated.protected BindingSetremoveFirstElement(List<BindingSet> list) Deprecated.Remove the first (0 index) element from a BindingSet list.private voidDeprecated.Methods inherited from class LookAheadIteration
hasNext, next, removeMethods inherited from class AbstractCloseableIteration
close, isClosedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseableIteration
stream
-
Field Details
-
leftIter
Deprecated. -
rightIter
Deprecated. -
scanList
Deprecated. -
restIter
Deprecated. -
hashTable
Deprecated. -
joinAttributes
-
currentScanElem
Deprecated. -
hashTableValues
Deprecated.
-
-
Constructor Details
-
BottomUpJoinIterator
public BottomUpJoinIterator(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException Deprecated.- Throws:
QueryEvaluationException
-
-
Method Details
-
getNextElement
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
Deprecated.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
Deprecated. -
setupHashTable
Deprecated.- Throws:
QueryEvaluationException
-
put
protected void put(Map<BindingSet, List<BindingSet>> hashTable, BindingSet hashKey, List<BindingSet> hashValue) throws QueryEvaluationException Deprecated.- Throws:
QueryEvaluationException
-
addAll
protected void addAll(List<BindingSet> hashTableValues, List<BindingSet> values) throws QueryEvaluationException Deprecated.- Throws:
QueryEvaluationException
-
add
Deprecated.- Throws:
QueryEvaluationException
-
makeMap
Deprecated.Utility methods to make it easier to inserted custom store dependent maps- Returns:
- map
-
makeList
Deprecated.Utility methods to make it easier to inserted custom store dependent list- Returns:
- list
-
makeList
Deprecated.Utility methods to make it easier to inserted custom store dependent list- Returns:
- list
-
removeFirstElement
Deprecated.Remove the first (0 index) element from a BindingSet list.- Parameters:
list- which is worked on.- Returns:
- the removed BindingSet
- Throws:
QueryEvaluationException
-