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
ConstructorDescriptionLoggingCloseableIteration
(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Closes this iteration, freeing any resources that it is holding.final boolean
hasNext()
Returns true if the iteration has more elements.protected abstract void
protected abstract boolean
protected abstract ValidationTuple
final ValidationTuple
next()
Returns the next element in the iteration.void
remove()
A default method since the iterators in the ShaclSail don't support remove.
-
Constructor Details
-
LoggingCloseableIteration
public LoggingCloseableIteration(PlanNode planNode, ValidationExecutionLogger validationExecutionLogger)
-
-
Method Details
-
next
Description copied from interface:Iteration
Returns the next element in the iteration.- Specified by:
next
in interfaceIteration<ValidationTuple,
SailException> - Returns:
- the next element in the iteration.
- Throws:
SailException
-
hasNext
Description copied from interface:Iteration
Returns 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:
hasNext
in interfaceIteration<ValidationTuple,
SailException> - Returns:
- true if the iteration has more elements.
- 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,
SailException> - Throws:
SailException
-
loggingNext
- Throws:
SailException
-
localHasNext
- Throws:
SailException
-
localClose
- Throws:
SailException
-
remove
A default method since the iterators in the ShaclSail don't support remove.- Specified by:
remove
in interfaceIteration<ValidationTuple,
SailException> - Throws:
SailException
-