java.lang.Object
org.apache.jena.sparql.exec.RowSetMem
- All Implemented Interfaces:
Iterator<Binding>
,org.apache.jena.atlas.iterator.IteratorCloseable<Binding>
,org.apache.jena.atlas.lib.Closeable
,RowSet
,RowSetRewindable
A row set held in-memory which is rewindable and peekable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.jena.sparql.exec.RowSet
RowSet.Exception
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Normally a RowSet is processed until complete which implicitly closes any underlying resources.static RowSetRewindable
Get the variable names for the projectionlong
Return the "row" number for the current iterator itemboolean
hasNext()
Is there another possibility?next()
Moves onto the next result possibility.peek()
void
reset()
void
rewind()
Reset this result set back to the beginninglong
size()
Return the number of rowsMethods 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
-
Method Details
-
create
-
hasNext
public boolean hasNext()Is there another possibility? -
next
Moves onto the next result possibility. -
rewind
public void rewind()Reset this result set back to the beginning -
reset
public void reset()- Specified by:
reset
in interfaceRowSetRewindable
-
getRowNumber
public long getRowNumber()Return the "row" number for the current iterator item- Specified by:
getRowNumber
in interfaceRowSet
-
size
public long size()Return the number of rows- Specified by:
size
in interfaceRowSetRewindable
-
getResultVars
Get the variable names for the projection- Specified by:
getResultVars
in interfaceRowSet
-
peek
-
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.
-