Class RowSetStream

All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.iterator.IteratorCloseable<Binding>, org.apache.jena.atlas.lib.Closeable, RowSet
Direct Known Subclasses:

public class RowSetStream extends Object implements RowSet
  • Method Details

    • create

      public static RowSet create(List<Var> vars, Iterator<Binding> iterator)
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<Binding>
      Specified by:
      hasNext in interface RowSet
    • next

      public Binding next()
      Specified by:
      next in interface Iterator<Binding>
      Specified by:
      next in interface RowSet
    • getResultVars

      public List<Var> getResultVars()
      Specified by:
      getResultVars in interface RowSet
    • rewindable

      public RowSetRewindable rewindable()
      Description copied from interface: RowSet
      Create a RowSetRewindable from the current position to the end. This consumes this RowSet - the iterator will have ended after a call to this method.
      Specified by:
      rewindable in interface RowSet
    • getRowNumber

      public long getRowNumber()
      Description copied from interface: RowSet
      Return the row number. The first row is row 1.
      Specified by:
      getRowNumber in interface RowSet
    • close

      public void close()
      Description copied from interface: RowSet
      Normally a RowSet is processed until complete which implicitly closes any underlying resources. This "close" operation exists to explicitly do this in cases where it does onto automatically. There is no need to close RowSets normally - it is the QueryExec that should be closed.
      Specified by:
      close in interface org.apache.jena.atlas.lib.Closeable
      Specified by:
      close in interface RowSet