Package com.complexible.common.rdf.query
Class IOBindingSetIterator
- java.lang.Object
-
- com.google.common.collect.UnmodifiableIterator<T>
-
- com.google.common.collect.AbstractIterator<BindingSet>
-
- com.complexible.common.rdf.query.IOBindingSetIterator
-
- All Implemented Interfaces:
CloseableIterator<BindingSet>
,BindingSetIterator
,com.google.common.collect.PeekingIterator<BindingSet>
,java.lang.AutoCloseable
,java.util.Iterator<BindingSet>
public final class IOBindingSetIterator extends com.google.common.collect.AbstractIterator<BindingSet> implements BindingSetIterator, com.google.common.collect.PeekingIterator<BindingSet>, CloseableIterator<BindingSet>
Helper class to adapter the Sesame push parsing for query results to a pull interface via an 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 Constructor Description IOBindingSetIterator(java.io.InputStream theStream, QueryResultFormat theFormat)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
protected BindingSet
computeNext()
java.util.List<java.lang.String>
variables()
Return the list of valid keys, eg binding names, returned via this Iteration-
Methods inherited from class com.google.common.collect.AbstractIterator
endOfData, hasNext, next, peek
-
-
-
-
Constructor Detail
-
IOBindingSetIterator
public IOBindingSetIterator(java.io.InputStream theStream, QueryResultFormat theFormat)
-
-
Method Detail
-
computeNext
protected BindingSet computeNext()
- Specified by:
computeNext
in classcom.google.common.collect.AbstractIterator<BindingSet>
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfaceCloseableIterator<BindingSet>
-
variables
public java.util.List<java.lang.String> variables()
Return the list of valid keys, eg binding names, returned via this Iteration- Specified by:
variables
in interfaceBindingSetIterator
- Returns:
- the binding names
-
-