Class QueryIteratorBase

All Implemented Interfaces:
Iterator<Binding>,, org.apache.jena.atlas.lib.Closeable, QueryIterator, PrintSerializable
Direct Known Subclasses:
CSVInputIterator, 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 Details

    • traceIterators

      public static boolean traceIterators
  • Constructor Details

    • QueryIteratorBase

      public QueryIteratorBase()
  • 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
      Specified by:
      cancel in interface QueryIterator
    • debug

      public String debug()