Class QueryIteratorBase

java.lang.Object
org.apache.jena.sparql.util.PrintSerializableBase
org.apache.jena.sparql.engine.iterator.QueryIteratorBase
All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.io.Printable, org.apache.jena.atlas.iterator.IteratorCloseable<Binding>, org.apache.jena.atlas.lib.Closeable, QueryIterator, PrintSerializable
Direct Known Subclasses:
QueryIter, QueryIteratorResultSet, QueryIteratorWrapper

public abstract class QueryIteratorBase extends PrintSerializableBase implements QueryIterator
This class provides the general machinery for iterators. This includes
  • Method Details

    • 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 - subclasses implement moveToNextBinding()
      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.apache.jena.atlas.lib.Closeable
    • cancel

      public final void cancel()
      Cancel this iterator : this is called, possibly asynchronously, to cancel an iterator.
      Specified by:
      cancel in interface QueryIterator