Class LoggingCloseableIteration
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.planNodes.LoggingCloseableIteration
- All Implemented Interfaces:
AutoCloseable,CloseableIteration<ValidationTuple,,SailException> Iteration<ValidationTuple,SailException>
public abstract class LoggingCloseableIteration
extends Object
implements CloseableIteration<ValidationTuple,SailException>
-
Constructor Summary
ConstructorsConstructorDescriptionLoggingCloseableIteration(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this iteration, freeing any resources that it is holding.final booleanhasNext()Returns true if the iteration has more elements.protected abstract voidinit()booleanisClosed()protected abstract voidprotected abstract booleanprotected abstract ValidationTuplefinal ValidationTuplenext()Returns the next element in the iteration.voidremove()A default method since the iterators in the ShaclSail don't support remove.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
-
Constructor Details
-
LoggingCloseableIteration
public LoggingCloseableIteration(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger)
-
-
Method Details
-
next
Description copied from interface:IterationReturns the next element in the iteration.- Specified by:
nextin interfaceIteration<ValidationTuple,SailException> - Returns:
- the next element in the iteration.
- Throws:
SailException
-
hasNext
Description copied from interface:IterationReturns true if the iteration has more elements. (In other words, returns true ifIteration.next()would return an element rather than throwing a NoSuchElementException.)- Specified by:
hasNextin interfaceIteration<ValidationTuple,SailException> - Returns:
- true if the iteration has more elements.
- Throws:
SailException
-
close
Description copied from interface:CloseableIterationCloses this iteration, freeing any resources that it is holding. If the iteration has already been closed then invoking this method has no effect.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIteration<ValidationTuple,SailException> - Throws:
SailException
-
init
protected abstract void init() -
loggingNext
-
localHasNext
protected abstract boolean localHasNext() -
localClose
protected abstract void localClose() -
remove
A default method since the iterators in the ShaclSail don't support remove.- Specified by:
removein interfaceIteration<ValidationTuple,SailException> - Throws:
SailException
-
isClosed
public boolean isClosed()
-