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()
ResultSethasNext in interface ResultSethasNext in interface Iterator<QuerySolution>public QuerySolution next()
ResultSetnext in interface ResultSetnext in interface Iterator<QuerySolution>public QuerySolution nextSolution()
ResultSetnextSolution in interface ResultSetpublic Binding nextBinding()
ResultSetnextBinding in interface ResultSetpublic int getRowNumber()
ResultSetgetRowNumber in interface ResultSetpublic List<String> getResultVars()
ResultSetgetResultVars in interface ResultSetpublic Model getResourceModel()
ResultSetgetResourceModel in interface ResultSetpublic void remove()
remove in interface Iterator<QuerySolution>public QuerySolution peek()
ResultSetPeekablepeek in interface ResultSetPeekablepublic Binding peekBinding()
ResultSetPeekablepeekBinding in interface ResultSetPeekableLicenced under the Apache License, Version 2.0