Package org.eclipse.rdf4j.query.impl
Class AbstractParserQuery.QueryInterruptIteration
java.lang.Object
org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration<E,X>
org.eclipse.rdf4j.common.iteration.IterationWrapper<E,X>
org.eclipse.rdf4j.common.iteration.TimeLimitIteration<BindingSet,QueryEvaluationException>
org.eclipse.rdf4j.query.impl.AbstractParserQuery.QueryInterruptIteration
- All Implemented Interfaces:
AutoCloseable
,CloseableIteration<BindingSet,
,QueryEvaluationException> Iteration<BindingSet,
QueryEvaluationException>
- Enclosing class:
AbstractParserQuery
protected class AbstractParserQuery.QueryInterruptIteration
extends TimeLimitIteration<BindingSet,QueryEvaluationException>
-
Field Summary
Fields inherited from class org.eclipse.rdf4j.common.iteration.IterationWrapper
wrappedIter
-
Constructor Summary
ConstructorDescriptionQueryInterruptIteration
(Iteration<? extends BindingSet, ? extends QueryEvaluationException> iter, long timeLimit) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
If the iteration is interrupted by its time limit, this method is called to generate and throw the appropriate exception.Methods inherited from class org.eclipse.rdf4j.common.iteration.TimeLimitIteration
handleClose, hasNext, next, remove
Methods inherited from class org.eclipse.rdf4j.common.iteration.AbstractCloseableIteration
close, isClosed
-
Constructor Details
-
QueryInterruptIteration
public QueryInterruptIteration(Iteration<? extends BindingSet, ? extends QueryEvaluationException> iter, long timeLimit)
-
-
Method Details
-
throwInterruptedException
Description copied from class:TimeLimitIteration
If the iteration is interrupted by its time limit, this method is called to generate and throw the appropriate exception.- Specified by:
throwInterruptedException
in classTimeLimitIteration<BindingSet,
QueryEvaluationException> - Throws:
QueryEvaluationException
-