Class RowSetOnClose

java.lang.Object
org.apache.jena.riot.rowset.RowSetWrapper
org.apache.jena.riot.rowset.RowSetOnClose
All Implemented Interfaces:
Iterator<Binding>, org.apache.jena.atlas.iterator.IteratorCloseable<Binding>, org.apache.jena.atlas.lib.Closeable, RowSet

public class RowSetOnClose extends RowSetWrapper
Perform an action on a row set when iteration finishes or close() is called.
  • Constructor Details

  • Method Details

    • hasNext

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

      public Binding next()
      Specified by:
      next in interface Iterator<Binding>
      Specified by:
      next in interface RowSet
      Overrides:
      next in class RowSetWrapper
    • 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
      Overrides:
      close in class RowSetWrapper