Class JSONInputIterator
java.lang.Object
org.apache.jena.sparql.util.PrintSerializableBase
org.apache.jena.sparql.engine.iterator.QueryIteratorBase
org.apache.jena.riot.resultset.rw.JSONInputIterator
- All Implemented Interfaces:
Iterator<Binding>,org.apache.jena.atlas.io.Printable,org.apache.jena.atlas.lib.Closeable,QueryIterator,PrintSerializable
Streaming Iterator over SPARQL JSON results, not yet fully implemented (see
JENA-267)
Creating the Iterator automatically causes it to parse a small chunk of the stream to determine the variables in the result set either by reading the header or reading some portion of the results if the results appear before the header since JSON does not guarantee the order of keys within an object
-
Field Summary
Fields inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
traceIterators -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetVars()Returns the variables present in the result setsbooleanGets whether the SPARQL JSON represents a boolean result setvoidoutput(org.apache.jena.atlas.io.IndentedWriter out, SerializationContext sCxt) Methods inherited from class org.apache.jena.sparql.engine.iterator.QueryIteratorBase
cancel, close, debug, hasNext, next, nextBinding, removeMethods inherited from class org.apache.jena.sparql.util.PrintSerializableBase
output, toString, toStringMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface org.apache.jena.atlas.io.Printable
outputMethods inherited from interface org.apache.jena.sparql.util.PrintSerializable
toStringMethods inherited from interface org.apache.jena.sparql.engine.QueryIterator
isJoinIdentity
-
Constructor Details
-
JSONInputIterator
Creates a SPARQL JSON IteratorAutomatically parses some portion of the input to determine the variables in use
-
-
Method Details
-
getVars
Returns the variables present in the result sets -
isBooleanResult
public boolean isBooleanResult()Gets whether the SPARQL JSON represents a boolean result set -
output
-