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 TypeMethodDescriptionvoidclose()Normally a RowSet is processed until complete which implicitly closes any underlying resources.static RowSetRewindableGet the variable names for the projectionlongReturn the "row" number for the current iterator itembooleanhasNext()Is there another row?next()Moves onto the next result possibility.peek()voidreset()voidrewind()Reset this result set back to the beginninglongsize()Return the number of rows (not the number remaining in an iterator)Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining, removeMethods inherited from interface org.apache.jena.sparql.exec.RowSet
forEach, materialize, rewindable, stream
-
Method Details
-
create
-
hasNext
public boolean hasNext()Is there another row? -
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:
resetin interfaceRowSetRewindable
-
getRowNumber
public long getRowNumber()Return the "row" number for the current iterator item- Specified by:
getRowNumberin interfaceRowSet
-
size
public long size()Return the number of rows (not the number remaining in an iterator)- Specified by:
sizein interfaceRowSetRewindable
-
getResultVars
Get the variable names for the projection- Specified by:
getResultVarsin interfaceRowSet
-
peek
-
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.
-