public class ResultSetPeeking extends Object implements ResultSetPeekable
Modifier and Type | Field and Description |
---|---|
static boolean |
warnOnSyncErrors
Controls whether a log warning is printed if someone modifies the
underlying result set externally to us
|
Constructor and Description |
---|
ResultSetPeeking(ResultSet results)
Creates a peeking wrapper around another result set
|
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?
|
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()).
|
QuerySolution |
peek()
Peek at the next query solution
|
Binding |
peekBinding()
Peek at the next binding
|
void |
remove() |
public static boolean warnOnSyncErrors
public ResultSetPeeking(ResultSet results)
results
- Inner resultspublic 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 QuerySolution nextSolution()
ResultSet
nextSolution
in interface ResultSet
public Binding nextBinding()
ResultSet
nextBinding
in interface ResultSet
public int getRowNumber()
ResultSet
getRowNumber
in interface ResultSet
public List<String> getResultVars()
ResultSet
getResultVars
in interface ResultSet
public Model getResourceModel()
ResultSet
getResourceModel
in interface ResultSet
public void remove()
remove
in interface Iterator<QuerySolution>
public QuerySolution peek()
ResultSetPeekable
peek
in interface ResultSetPeekable
public Binding peekBinding()
ResultSetPeekable
peekBinding
in interface ResultSetPeekable
Licenced under the Apache License, Version 2.0