java.lang.Object
org.apache.jena.sparql.exec.RowSetStream
- All Implemented Interfaces:
Iterator<Binding>,org.apache.jena.atlas.iterator.IteratorCloseable<Binding>,org.apache.jena.atlas.lib.Closeable,RowSet
- Direct Known Subclasses:
RowSetAdapter
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.exec.RowSet
RowSet.Exception -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Normally a RowSet is processed until complete which implicitly closes any underlying resources.static RowSetvoidforEachRemaining(Consumer<? super Binding> action) longReturn the row number.booleanhasNext()next()Create aRowSetRewindablefrom the current position to the end.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jena.sparql.exec.RowSet
forEach, materialize, stream
-
Method Details
-
create
-
hasNext
public boolean hasNext() -
next
-
getResultVars
- Specified by:
getResultVarsin interfaceRowSet
-
rewindable
Description copied from interface:RowSetCreate aRowSetRewindablefrom the current position to the end. This consumes this RowSet - the iterator will have ended after a call to this method.- Specified by:
rewindablein interfaceRowSet
-
getRowNumber
public long getRowNumber()Description copied from interface:RowSetReturn the row number. The first row is row 1.- Specified by:
getRowNumberin interfaceRowSet
-
close
public void close()Description copied from interface:RowSetNormally a RowSet is processed until complete which implicitly closes any underlying resources. This "close" operation exists to explicitly end use of the RowSet in cases where it does happen. There is no need to close RowSets normally - it is theQueryExecthat should be closed. -
forEachRemaining
- Specified by:
forEachRemainingin interfaceIterator<Binding>
-