Package com.complexible.common.rdf.query
Class TupleQueryResultIterator
- java.lang.Object
-
- com.complexible.common.rdf.query.TupleQueryResultIterator
-
- All Implemented Interfaces:
CloseableIterator<BindingSet>
,BindingSetIterator
,java.lang.AutoCloseable
,java.util.Iterator<BindingSet>
public final class TupleQueryResultIterator extends java.lang.Object implements BindingSetIterator, CloseableIterator<BindingSet>
Adapter for
SelectQueryResult
objects toIterator
- 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 Constructor Description TupleQueryResultIterator(SelectQueryResult theResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
boolean
hasNext()
BindingSet
next()
java.util.List<java.lang.String>
variables()
Return the list of valid keys, eg binding names, returned via this Iteration
-
-
-
Constructor Detail
-
TupleQueryResultIterator
public TupleQueryResultIterator(SelectQueryResult theResult)
-
-
Method Detail
-
next
public BindingSet next() throws QueryExecutionFailure
- Specified by:
next
in interfacejava.util.Iterator<BindingSet>
- Throws:
QueryExecutionFailure
-
hasNext
public boolean hasNext() throws QueryExecutionFailure
- Specified by:
hasNext
in interfacejava.util.Iterator<BindingSet>
- Throws:
QueryExecutionFailure
-
close
public void close() throws QueryExecutionFailure
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<BindingSet>
- Throws:
QueryExecutionFailure
-
variables
@Nonnull public java.util.List<java.lang.String> variables() throws QueryExecutionFailure
Return the list of valid keys, eg binding names, returned via this Iteration- Specified by:
variables
in interfaceBindingSetIterator
- Returns:
- the binding names
- Throws:
QueryExecutionFailure
-
-