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
,RowSetBuffered
,RowSetJSONStreaming
,RowSetMem
,RowSetStream
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RowSet
void
close()
Normally a RowSet is processed until complete which implicitly closes any underlying resources.static RowSet
create
(QueryIterator qIter, List<Var> vars) Turn aQueryIterator
into a RowSet.long
Return the row number.boolean
hasNext()
default RowSet
Return aRowSet
that is not connected to the original source.next()
default RowSetRewindable
Create aRowSetRewindable
from 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 aRowSetRewindable
from the current position to the end. This consumes this RowSet - the iterator will have ended after a call to this method. -
materialize
Return aRowSet
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
-
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 theQueryExec
that should be closed.- Specified by:
close
in interfaceorg.apache.jena.atlas.lib.Closeable
-
create
Turn aQueryIterator
into a RowSet. This operation does not materialize the QueryIterator.
-