Interface RowSet

All Superinterfaces:
org.apache.jena.atlas.lib.Closeable, Iterator<Binding>, org.apache.jena.atlas.iterator.IteratorCloseable<Binding>
All Known Subinterfaces:
RowSetRewindable
All Known Implementing Classes:
RowSetAdapter, RowSetBuffered, RowSetJSONStreaming, RowSetMem, RowSetStream

public interface RowSet extends org.apache.jena.atlas.iterator.IteratorCloseable<Binding>
  • Method Details

    • adapt

      static RowSet adapt(ResultSet resultSet)
    • hasNext

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

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

      List<Var> getResultVars()
    • rewindable

      default RowSetRewindable rewindable()
      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.
    • materialize

      default RowSet materialize()
      Return a RowSet that is not connected to the original source. This consumes this ResultSet and produces another one.
    • getRowNumber

      long getRowNumber()
      Return the row number. The first row is row 1.
    • stream

      default Stream<Binding> stream()
    • close

      void close()
      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
    • create

      static RowSet create(QueryIterator qIter, List<Var> vars)
      Turn a QueryIterator into a RowSet. This operation does not materialize the QueryIterator.