public final class TupleQueryResultIterator extends Object implements BindingSetIterator, CloseableIterator<BindingSet>
Adapter for SelectQueryResult objects to Iterator
CloseableIterator.AbstractCloseableIterator<T>, CloseableIterator.DelegatingCloseableIterator<T>, CloseableIterator.EmptyCloseableIterator<T>| Constructor and Description |
|---|
TupleQueryResultIterator(SelectQueryResult theResult) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
hasNext() |
BindingSet |
next() |
List<String> |
variables()
Return the list of valid keys, eg binding names, returned via this Iteration
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseQuietly, collect, concat, concat, concat, empty, filter, first, isEmpty, map, onClose, singleton, size, toCloseable, toCloseable, toCloseable, toList, toSet, transformforEachRemaining, removepublic TupleQueryResultIterator(SelectQueryResult theResult)
public BindingSet next() throws QueryExecutionFailure
next in interface Iterator<BindingSet>QueryExecutionFailurepublic boolean hasNext()
throws QueryExecutionFailure
hasNext in interface Iterator<BindingSet>QueryExecutionFailurepublic void close()
throws QueryExecutionFailure
close in interface CloseableIterator<BindingSet>close in interface AutoCloseableQueryExecutionFailure@Nonnull public List<String> variables() throws QueryExecutionFailure
variables in interface BindingSetIteratorQueryExecutionFailureCopyright © 2010-2016 Stardog Union. All Rights Reserved.