Package org.apache.jena.sparql.engine
Class JsonIterator
- java.lang.Object
-
- org.apache.jena.sparql.engine.JsonIterator
-
- All Implemented Interfaces:
java.util.Iterator<JsonObject>
public class JsonIterator extends java.lang.Object implements java.util.Iterator<JsonObject>
A JSON iterator for JsonObject's, that wraps a QueryIterator, and a list of result variables.
-
-
Constructor Summary
Constructors Constructor Description JsonIterator(QueryIterator queryIterator, java.util.List<java.lang.String> resultVars)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
JsonObject
next()
-
-
-
Constructor Detail
-
JsonIterator
public JsonIterator(QueryIterator queryIterator, java.util.List<java.lang.String> resultVars)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<JsonObject>
-
next
public JsonObject next()
- Specified by:
next
in interfacejava.util.Iterator<JsonObject>
-
-