public class HashJoinIteration extends LookAheadIteration<BindingSet,QueryEvaluationException>
Constructor and Description |
---|
HashJoinIteration(EvaluationStrategy strategy,
Join join,
BindingSet bindings) |
HashJoinIteration(EvaluationStrategy strategy,
Join join,
BindingSet bindings,
boolean leftJoin) |
Modifier and Type | Method and Description |
---|---|
protected <E> void |
add(Collection<E> col,
E value) |
protected <E> void |
addAll(Collection<E> col,
List<E> values) |
protected <E> void |
closeHashValue(Iterator<E> iter)
Utility methods to clear-up in case not using in-memory hash table
|
protected void |
disposeCache(Iterator<BindingSet> iter)
Utility methods to clear-up in case not using in-memory cache
|
protected void |
disposeHashTable(Map<BindingSetHashKey,List<BindingSet>> map)
Utility methods to clear-up in case not using in-memory hash table
|
protected BindingSet |
getNextElement()
Gets the next element.
|
protected void |
handleClose()
Called by
CloseableIterationBase.close() when it is called for the first time. |
protected Map<BindingSetHashKey,List<BindingSet>> |
makeHashTable(int initialSize)
Utility methods to make it easier to inserted custom store dependent maps
|
protected List<BindingSet> |
makeHashValue(int currentMaxListSize)
Utility methods to make it easier to inserted custom store dependent list
|
protected Collection<BindingSet> |
makeIterationCache(CloseableIteration<BindingSet,QueryEvaluationException> iter)
Utility methods to make it easier to inserted custom store dependent list
|
protected <E> E |
nextFromCache(Iterator<E> iter) |
protected void |
putHashTableEntry(Map<BindingSetHashKey,List<BindingSet>> hashTable,
BindingSetHashKey hashKey,
List<BindingSet> hashValue) |
hasNext, next, remove
close, isClosed
public HashJoinIteration(EvaluationStrategy strategy, Join join, BindingSet bindings) throws QueryEvaluationException
QueryEvaluationException
public HashJoinIteration(EvaluationStrategy strategy, Join join, BindingSet bindings, boolean leftJoin) throws QueryEvaluationException
QueryEvaluationException
protected BindingSet getNextElement() throws QueryEvaluationException
LookAheadIteration
getNextElement
in class LookAheadIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void handleClose() throws QueryEvaluationException
CloseableIterationBase
CloseableIterationBase.close()
when it is called for the first time. This method
is only called once on each iteration. By default, this method does
nothing.handleClose
in class LookAheadIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void putHashTableEntry(Map<BindingSetHashKey,List<BindingSet>> hashTable, BindingSetHashKey hashKey, List<BindingSet> hashValue) throws QueryEvaluationException
QueryEvaluationException
protected Collection<BindingSet> makeIterationCache(CloseableIteration<BindingSet,QueryEvaluationException> iter)
protected Map<BindingSetHashKey,List<BindingSet>> makeHashTable(int initialSize)
protected List<BindingSet> makeHashValue(int currentMaxListSize)
protected void disposeCache(Iterator<BindingSet> iter)
protected void disposeHashTable(Map<BindingSetHashKey,List<BindingSet>> map)
protected <E> void closeHashValue(Iterator<E> iter)
protected <E> E nextFromCache(Iterator<E> iter)
protected <E> void add(Collection<E> col, E value) throws QueryEvaluationException
QueryEvaluationException
protected <E> void addAll(Collection<E> col, List<E> values) throws QueryEvaluationException
QueryEvaluationException
Copyright © 2001-2016 Aduna. All Rights Reserved.