public class JSONInputIterator extends QueryIteratorBase
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
traceIterators
Constructor and Description |
---|
JSONInputIterator(InputStream input)
Creates a SPARQL JSON Iterator
|
Modifier and Type | Method and Description |
---|---|
Iterator<String> |
getVars()
Returns the variables present in the result sets
|
boolean |
isBooleanResult()
Gets whether the SPARQL JSON represents a boolean result set
|
void |
output(IndentedWriter out,
SerializationContext sCxt) |
cancel, close, debug, hasNext, next, nextBinding, remove
output, toString, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
toString
public JSONInputIterator(InputStream input)
Automatically parses some portion of the input to determine the variables in use
public boolean isBooleanResult()
public void output(IndentedWriter out, SerializationContext sCxt)
Licenced under the Apache License, Version 2.0