public class LimitedSizeIntersectIteration extends IntersectIteration<BindingSet,QueryEvaluationException>
arg2
wrappedIter
Constructor and Description |
---|
LimitedSizeIntersectIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg1,
Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2,
AtomicLong used,
long maxSize)
Creates a new IntersectIteration that returns the intersection of the results of two Iterations.
|
LimitedSizeIntersectIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg1,
Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2,
boolean distinct,
AtomicLong used,
long maxSize) |
Modifier and Type | Method and Description |
---|---|
Set<BindingSet> |
addSecondSet(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2,
Set<BindingSet> set) |
protected void |
handleClose()
After closing the set is cleared and any "used" capacity for collections is returned.
|
accept, clearIncludeSet, inIncludeSet, makeSet, removeFromIncludeSet
hasNext, next
remove
close, isClosed
public LimitedSizeIntersectIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg1, Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2, AtomicLong used, long maxSize)
arg1
- An Iteration containing the first set of elements.arg2
- An Iteration containing the second set of elements.used
- An atomic long used to monitor how many elements are in the set collections.maxSize
- Maximum size allowed by the sum of all collections used by the LimitedSizeQueryEvaluatlion.public LimitedSizeIntersectIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg1, Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2, boolean distinct, AtomicLong used, long maxSize)
public Set<BindingSet> addSecondSet(Iteration<? extends BindingSet,? extends QueryEvaluationException> arg2, Set<BindingSet> set) throws QueryEvaluationException
addSecondSet
in class IntersectIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
protected void handleClose() throws QueryEvaluationException
handleClose
in class IntersectIteration<BindingSet,QueryEvaluationException>
QueryEvaluationException
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.