public class SortedResultSet extends Object implements ResultSet
Constructor and Description |
---|
SortedResultSet(ResultSet rs,
List<SortCondition> conditions) |
Modifier and Type | Method and Description |
---|---|
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 result?
|
boolean |
isOrdered() |
QuerySolution |
next()
Moves onto the next result.
|
Binding |
nextBinding()
Move to the next binding (low level)
|
QuerySolution |
nextSolution()
Moves onto the next result (legacy - use .next()).
|
void |
remove() |
public SortedResultSet(ResultSet rs, List<SortCondition> conditions)
public boolean hasNext()
ResultSet
hasNext
in interface ResultSet
hasNext
in interface Iterator<QuerySolution>
public QuerySolution next()
ResultSet
next
in interface ResultSet
next
in interface Iterator<QuerySolution>
public Binding nextBinding()
ResultSet
nextBinding
in interface ResultSet
public QuerySolution nextSolution()
ResultSet
nextSolution
in interface ResultSet
public int getRowNumber()
ResultSet
getRowNumber
in interface ResultSet
public List<String> getResultVars()
ResultSet
getResultVars
in interface ResultSet
public boolean isOrdered()
public Model getResourceModel()
ResultSet
getResourceModel
in interface ResultSet
public void remove()
remove
in interface Iterator<QuerySolution>
Licenced under the Apache License, Version 2.0