public final class IteratorAsGraphQueryResult extends com.google.common.collect.AbstractIterator<T> implements GraphQueryResult
Adapter class for using a StatementIteration as a Sesame GraphQueryResult.
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
Constructor and Description |
---|
IteratorAsGraphQueryResult(CloseableIterator<Statement> theIter) |
IteratorAsGraphQueryResult(CloseableIterator<Statement> theIter,
Iterable<Namespace> theNamespacesProvider,
Runnable theOnClose,
Runnable theOnSuccess,
Function<Exception,RuntimeException> theOnFailure) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected T |
computeNext() |
Namespaces |
namespaces()
The set of namespaces, if specified, that are to be used with the result set.
|
endOfData, hasNext, next, peek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toGraph
close, hasNext, metadata, next, stream
closeQuietly, collect, concat, concat, concat, empty, filter, first, isEmpty, limit, map, offset, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transform
forEachRemaining, remove
public IteratorAsGraphQueryResult(CloseableIterator<Statement> theIter)
public IteratorAsGraphQueryResult(CloseableIterator<Statement> theIter, Iterable<Namespace> theNamespacesProvider, Runnable theOnClose, Runnable theOnSuccess, Function<Exception,RuntimeException> theOnFailure)
@Nonnull public Namespaces namespaces()
namespaces
in interface GraphQueryResult
public void close() throws QueryExecutionFailure
close
in interface CloseableIterator<T>
close
in interface AutoCloseable
QueryExecutionFailure
protected T computeNext()
computeNext
in class com.google.common.collect.AbstractIterator<T>
Copyright © 2010-2016 Stardog Union. All Rights Reserved.