com.hp.hpl.jena.sparql.engine.iterator
Class QueryIteratorBase
java.lang.Object
com.hp.hpl.jena.sparql.util.PrintSerializableBase
com.hp.hpl.jena.sparql.engine.iterator.QueryIteratorBase
- All Implemented Interfaces:
- QueryIterator, PrintSerializable, Iterator<Binding>, org.openjena.atlas.io.Printable, org.openjena.atlas.lib.Closeable
- Direct Known Subclasses:
- QueryIter, QueryIteratorResultSet, QueryIteratorWrapper
public abstract class QueryIteratorBase
- extends PrintSerializableBase
- implements QueryIterator
This class provides the general machinary for iterators. This includes:
- autoclose when the iterator runs out
- ensuring query iterators only contain Bindings
|
Method Summary |
void |
abort()
Abort a query - may not clearup properly |
void |
close()
|
String |
debug()
|
boolean |
hasNext()
final - subclasses implement hasNextBinding() |
Binding |
next()
final - autoclose and registration relies on it - implement moveToNextBinding() |
Binding |
nextBinding()
final - implement moveToNextBinding() instead |
void |
remove()
|
| Methods inherited from interface org.openjena.atlas.io.Printable |
output |
traceIterators
public static boolean traceIterators
QueryIteratorBase
public QueryIteratorBase()
hasNext
public final boolean hasNext()
- final - subclasses implement hasNextBinding()
- Specified by:
hasNext in interface Iterator<Binding>
next
public final Binding next()
- final - autoclose and registration relies on it - implement moveToNextBinding()
- Specified by:
next in interface Iterator<Binding>
nextBinding
public final Binding nextBinding()
- final - implement moveToNextBinding() instead
- Specified by:
nextBinding in interface QueryIterator
remove
public final void remove()
- Specified by:
remove in interface Iterator<Binding>
close
public void close()
- Specified by:
close in interface org.openjena.atlas.lib.Closeable
abort
public void abort()
- Description copied from interface:
QueryIterator
- Abort a query - may not clearup properly
- Specified by:
abort in interface QueryIterator
debug
public String debug()
Copyright ? 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP Copyright ? 2010 Talis Systems Ltd. Copyright ? 2010 Epimorphics Ltd.