Class QueryIteratorBase
- java.lang.Object
-
- org.apache.jena.sparql.util.PrintSerializableBase
-
- org.apache.jena.sparql.engine.iterator.QueryIteratorBase
-
- All Implemented Interfaces:
java.util.Iterator<Binding>
,org.apache.jena.atlas.io.Printable
,org.apache.jena.atlas.lib.Closeable
,QueryIterator
,PrintSerializable
- Direct Known Subclasses:
CSVInputIterator
,JSONInputIterator
,QueryIter
,QueryIteratorResultSet
,QueryIteratorWrapper
public abstract class QueryIteratorBase extends PrintSerializableBase implements QueryIterator
This class provides the general machinery for iterators. This includes:- autoclose when the iterator runs out
- ensuring query iterators only contain Bindings
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
traceIterators
-
Constructor Summary
Constructors Constructor Description QueryIteratorBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cancel()
Cancel this iteratorvoid
close()
java.lang.String
debug()
boolean
hasNext()
final - subclasses implement hasNextBinding()Binding
next()
final - autoclose and registration relies on it - implement moveToNextBinding()Binding
nextBinding()
final - subclasses implement moveToNextBinding()void
remove()
-
Methods inherited from class org.apache.jena.sparql.util.PrintSerializableBase
output, toString, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jena.sparql.util.PrintSerializable
output, toString
-
Methods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
-
-
-
Method Detail
-
hasNext
public final boolean hasNext()
final - subclasses implement hasNextBinding()- Specified by:
hasNext
in interfacejava.util.Iterator<Binding>
-
next
public final Binding next()
final - autoclose and registration relies on it - implement moveToNextBinding()- Specified by:
next
in interfacejava.util.Iterator<Binding>
-
nextBinding
public final Binding nextBinding()
final - subclasses implement moveToNextBinding()- Specified by:
nextBinding
in interfaceQueryIterator
-
remove
public final void remove()
- Specified by:
remove
in interfacejava.util.Iterator<Binding>
-
close
public void close()
- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
-
cancel
public final void cancel()
Cancel this iterator- Specified by:
cancel
in interfaceQueryIterator
-
debug
public java.lang.String debug()
-
-