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
Perform an action on a row set when iteration finishes
or
close()
is called.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.exec.RowSet
RowSet.Exception
-
Constructor Summary
-
Method Summary
Methods inherited from class org.apache.jena.riot.rowset.RowSetWrapper
get, getResultVars, getRowNumber
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining, remove
Methods inherited from interface org.apache.jena.sparql.exec.RowSet
forEach, materialize, rewindable, stream
-
Constructor Details
-
RowSetOnClose
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
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 theQueryExec
that should be closed.- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
- Specified by:
close
in interfaceRowSet
- Overrides:
close
in classRowSetWrapper
-