|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.hp.hpl.jena.sparql.resultset.ResultSetMem
public class ResultSetMem
An in-memory result set. Also useful for writing input processors which keep the result set in memory.
| Constructor Summary | |
|---|---|
ResultSetMem()
|
|
ResultSetMem(ResultSet... sets)
Create an in-memory result set from an array of ResulSets. |
|
ResultSetMem(ResultSet qr)
Create an in-memory result set from any ResultSet object. |
|
ResultSetMem(ResultSetMem imrs2)
Create an in-memory result set from another one |
|
ResultSetMem(ResultSetMem imrs2,
boolean takeCopy)
Create an in-memory result set from another one |
|
| Method Summary | |
|---|---|
Model |
getResourceModel()
Get the model that resources are created against - may be null |
List<String> |
getResultVars()
Get the variable names for the projection |
int |
getRowNumber()
Return the "row" number for the current iterator item |
boolean |
hasNext()
Is there another possibility? |
QuerySolution |
next()
Moves onto the next result possibility. |
Binding |
nextBinding()
Move to the next binding (low level) |
QuerySolution |
nextSolution()
Moves onto the next result possibility. |
void |
remove()
|
void |
reset()
Move back to the start of the iterator for this instance of results of a query. |
void |
rewind()
Reset this result set back to the beginning |
int |
size()
Return the number of rows |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResultSetMem(ResultSetMem imrs2)
imrs2 - The other QueryResultsMem object
public ResultSetMem(ResultSetMem imrs2,
boolean takeCopy)
imrs2 - The other ResultSetMem objecttakeCopy - Should we copy the rows?public ResultSetMem(ResultSet qr)
public ResultSetMem(ResultSet... sets)
sets - the ResultSet objects to concatenate.public ResultSetMem()
| Method Detail |
|---|
public void remove()
throws UnsupportedOperationException
remove in interface Iterator<QuerySolution>UnsupportedOperationException - always thrown.public boolean hasNext()
hasNext in interface ResultSethasNext in interface Iterator<QuerySolution>public QuerySolution nextSolution()
nextSolution in interface ResultSetpublic Binding nextBinding()
ResultSet
nextBinding in interface ResultSetpublic QuerySolution next()
next in interface ResultSetnext in interface Iterator<QuerySolution>public void rewind()
public void reset()
ResultSetRewindable
reset in interface ResultSetRewindablepublic int getRowNumber()
getRowNumber in interface ResultSetpublic Model getResourceModel()
ResultSet
getResourceModel in interface ResultSetpublic int size()
size in interface ResultSetRewindablepublic List<String> getResultVars()
getResultVars in interface ResultSet
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||