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
Constructors Constructor Description QueryInterruptIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> iter, long timeLimit)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
throwInterruptedException()
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 Detail
-
QueryInterruptIteration
public QueryInterruptIteration(Iteration<? extends BindingSet,? extends QueryEvaluationException> iter, long timeLimit)
-
-
Method Detail
-
throwInterruptedException
protected void throwInterruptedException() throws QueryEvaluationException
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
-
-