Package com.complexible.common.rdf.query
Class TupleQueryResultIterator
java.lang.Object
com.complexible.common.rdf.query.TupleQueryResultIterator
- All Implemented Interfaces:
CloseableIterator<BindingSet>,BindingSetIterator,AutoCloseable,Iterator<BindingSet>
public final class TupleQueryResultIterator
extends Object
implements BindingSetIterator, CloseableIterator<BindingSet>
Adapter for SelectQueryResult objects to Iterator
- Since:
- 0.4
- Version:
- 6.0
- 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
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
TupleQueryResultIterator
-
-
Method Details
-
next
- Specified by:
nextin interfaceIterator<BindingSet>- Throws:
QueryExecutionFailure
-
hasNext
- Specified by:
hasNextin interfaceIterator<BindingSet>- Throws:
QueryExecutionFailure
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseableIterator<BindingSet>- Throws:
QueryExecutionFailure
-
variables
Return the list of valid keys, eg binding names, returned via this Iteration- Specified by:
variablesin interfaceBindingSetIterator- Returns:
- the binding names
- Throws:
QueryExecutionFailure
-