public class ResultsStAX extends Object implements ResultSet, org.apache.jena.atlas.lib.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
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 |
isDistinct() |
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()).
|
static SPARQLResult |
read(InputStream in,
Model model,
Context context) |
static SPARQLResult |
read(Reader in,
Model model,
Context context) |
void |
remove() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static SPARQLResult read(InputStream in, Model model, Context context)
public static SPARQLResult read(Reader in, Model model, Context context)
public boolean hasNext()
ResultSethasNext in interface Iterator<QuerySolution>hasNext in interface ResultSetpublic QuerySolution next()
ResultSetnext in interface Iterator<QuerySolution>next in interface ResultSetpublic Binding nextBinding()
ResultSetnextBinding in interface ResultSetpublic QuerySolution nextSolution()
ResultSetnextSolution in interface ResultSetpublic int getRowNumber()
ResultSetgetRowNumber in interface ResultSetpublic List<String> getResultVars()
ResultSetgetResultVars in interface ResultSetpublic boolean isOrdered()
public boolean isDistinct()
public Model getResourceModel()
ResultSetgetResourceModel in interface ResultSetpublic void remove()
remove in interface Iterator<QuerySolution>public void close()
close in interface org.apache.jena.atlas.lib.CloseableLicenced under the Apache License, Version 2.0