Package com.complexible.common.rdf.query
Class IteratorAsGraphQueryResult
java.lang.Object
com.google.common.collect.UnmodifiableIterator<Statement>
com.google.common.collect.AbstractIterator<Statement>
com.complexible.common.rdf.query.IteratorAsQueryResult<Statement>
com.complexible.common.rdf.query.IteratorAsGraphQueryResult
- All Implemented Interfaces:
CloseableIterator<Statement>,GraphQueryResult,QueryResult<Statement>,AutoCloseable,Iterator<Statement>
public final class IteratorAsGraphQueryResult
extends IteratorAsQueryResult<Statement>
implements GraphQueryResult
Adapter class for using a StatementIteration as a Sesame GraphQueryResult.
- Since:
- 0.4
- Author:
- Michael Grove
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.complexible.common.base.CloseableIterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T> -
Constructor Summary
ConstructorsConstructorDescriptionIteratorAsGraphQueryResult(CloseableIterator<Statement> theIter, Iterable<Namespace> theNamespacesProvider, Runnable theOnClose, Runnable theOnSuccess, Function<Exception, RuntimeException> theOnFailure) -
Method Summary
Modifier and TypeMethodDescriptionThe set of namespaces, if specified, that are to be used with the result set.Methods inherited from class com.complexible.common.rdf.query.IteratorAsQueryResult
close, computeNextMethods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peekMethods inherited from class com.google.common.collect.UnmodifiableIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stardog.stark.query.GraphQueryResult
toGraphMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
IteratorAsGraphQueryResult
public IteratorAsGraphQueryResult(CloseableIterator<Statement> theIter, Iterable<Namespace> theNamespacesProvider, Runnable theOnClose, Runnable theOnSuccess, Function<Exception, RuntimeException> theOnFailure)
-
-
Method Details
-
namespaces
The set of namespaces, if specified, that are to be used with the result set.- Specified by:
namespacesin interfaceGraphQueryResult- Returns:
- the namespaces
-