Class QueryIterDefaulting

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

public class QueryIterDefaulting extends QueryIterSub
An iterator that returns at least one element from another iterator or a default value (once) if the wrapped iterator returns nothing.
  • Constructor Details

  • Method Details

    • wasDefaultObject

      public boolean wasDefaultObject()
      Returns true if the returned binding was the default object. Undef if before the iterator's first .hasNext()