Class LoggingCloseableIteration
java.lang.Object
org.eclipse.rdf4j.sail.shacl.ast.planNodes.LoggingCloseableIteration
- All Implemented Interfaces:
AutoCloseable
,Iterator<ValidationTuple>
,CloseableIteration<ValidationTuple>
public abstract class LoggingCloseableIteration
extends Object
implements CloseableIteration<ValidationTuple>
-
Constructor Summary
ConstructorDescriptionLoggingCloseableIteration
(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this iteration, freeing any resources that it is holding.final boolean
hasNext()
protected abstract void
init()
boolean
isClosed()
protected abstract void
protected abstract boolean
protected abstract ValidationTuple
final ValidationTuple
next()
void
remove()
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, wait
Methods inherited from interface org.eclipse.rdf4j.common.iteration.CloseableIteration
stream
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
LoggingCloseableIteration
public LoggingCloseableIteration(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger)
-
-
Method Details
-
next
- Specified by:
next
in interfaceIterator<ValidationTuple>
- Throws:
SailException
-
hasNext
- Specified by:
hasNext
in interfaceIterator<ValidationTuple>
- Throws:
SailException
-
close
Description copied from interface:CloseableIteration
Closes 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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseableIteration<ValidationTuple>
- 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:
remove
in interfaceIterator<ValidationTuple>
- Throws:
SailException
-
isClosed
public boolean isClosed()
-