Package org.apache.jena.sparql.exec
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,RowSetMem,RowSetStream
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RowSetvoidclose()Normally a RowSet is processed until complete which implicitly closes any underlying resources.static RowSetcreate(QueryIterator qIter, List<Var> vars) Turn aQueryIteratorinto a RowSet.longReturn the row number.booleanhasNext()default RowSetReturn aRowSetthat is not connected to the original source.next()default RowSetRewindableCreate aRowSetRewindablefrom the current position to the end.stream()Methods inherited from interface java.util.Iterator
forEachRemaining, remove
-
Method Details
-
adapt
-
hasNext
boolean hasNext() -
next
Binding next() -
getResultVars
-
rewindable
Create aRowSetRewindablefrom the current position to the end. This consumes this RowSet - the iterator will have ended after a call to this method. -
materialize
Return aRowSetthat 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
-
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 theQueryExecthat should be closed.- Specified by:
closein interfaceorg.apache.jena.atlas.lib.Closeable
-
create
Turn aQueryIteratorinto a RowSet. This operation does not materialize the QueryIterator.
-