public final class IteratorAsTupleQueryResult extends com.google.common.collect.AbstractIterator<T> implements SelectQueryResult
Adapter class for using a BindingSetIteration as a TupleQueryResult
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>
Constructor and Description |
---|
IteratorAsTupleQueryResult(CloseableIterator<BindingSet> theIter,
List<String> theBindingNames) |
IteratorAsTupleQueryResult(CloseableIterator<BindingSet> theIter,
List<String> theBindingNames,
Runnable theOnClose,
Runnable theOnSuccess,
Function<Exception,RuntimeException> theOnError) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected T |
computeNext() |
List<String> |
variables()
Return the list of projected variables from the query
|
endOfData, hasNext, next, peek
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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 IteratorAsTupleQueryResult(CloseableIterator<BindingSet> theIter, List<String> theBindingNames)
public IteratorAsTupleQueryResult(CloseableIterator<BindingSet> theIter, List<String> theBindingNames, Runnable theOnClose, Runnable theOnSuccess, Function<Exception,RuntimeException> theOnError)
public List<String> variables()
variables
in interface SelectQueryResult
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.