public class LimitedSizeIteratorUtil extends Object
| Constructor and Description |
|---|
LimitedSizeIteratorUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <V> boolean |
add(V object,
Collection<V> excludeSet,
AtomicLong used,
long maxSize) |
static Set<org.eclipse.rdf4j.query.BindingSet> |
addAll(org.eclipse.rdf4j.common.iteration.Iteration<? extends org.eclipse.rdf4j.query.BindingSet,? extends org.eclipse.rdf4j.query.QueryEvaluationException> arg2,
Set<org.eclipse.rdf4j.query.BindingSet> includeSet,
AtomicLong used,
long maxSize) |
public static Set<org.eclipse.rdf4j.query.BindingSet> addAll(org.eclipse.rdf4j.common.iteration.Iteration<? extends org.eclipse.rdf4j.query.BindingSet,? extends org.eclipse.rdf4j.query.QueryEvaluationException> arg2, Set<org.eclipse.rdf4j.query.BindingSet> includeSet, AtomicLong used, long maxSize) throws org.eclipse.rdf4j.query.QueryEvaluationException
arg2 - the iteration with elements to add to the includeSetincludeSet - the set that should have all unique elements of arg2used - the collection size counter of all collections used in answering a querymaxSize - the point at which we throw a new query exceptionorg.eclipse.rdf4j.query.QueryEvaluationException - trigerred when maxSize is smaller than the used valuepublic static <V> boolean add(V object,
Collection<V> excludeSet,
AtomicLong used,
long maxSize)
throws org.eclipse.rdf4j.query.QueryEvaluationException
object - object to put in set if not there already.excludeSet - set that we need to store object in.used - AtomicLong tracking how many elements we have in storage.maxSize - org.eclipse.rdf4j.query.QueryEvaluationException - when the object is added to the set and the total elements in all limited size collections
exceed the allowed maxSize.Copyright © 2015-2019 Eclipse Foundation. All Rights Reserved.