Package com.stardog.stark.query.io.json
Class SPARQLJSONBooleanResultWriter
java.lang.Object
com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter<Boolean>
com.stardog.stark.query.io.json.SPARQLJSONBooleanResultWriter
- All Implemented Interfaces:
BooleanQueryResultHandler,BooleanQueryResultWriter,QueryResultWriter<Boolean>,QueryResultHandler<Boolean>
public final class SPARQLJSONBooleanResultWriter
extends AbstractSPARQLJSONWriter<Boolean>
implements BooleanQueryResultWriter
Writer for boolean results in SPARQL/JSON.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class -
Field Summary
Fields inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
documentOpen, firstTupleWritten, headerComplete, headerOpen, jg, linksFound, mOptions, tupleVariablesFound -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.stardog.stark.query.io.json.AbstractSPARQLJSONWriter
end, endHeader, links, namespace, start, startHeader, writeHeaderFields, writeValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.stardog.stark.query.io.QueryResultWriter
end, links, namespace, start
-
Constructor Details
-
SPARQLJSONBooleanResultWriter
-
-
Method Details
-
handle
Handle a result to a query- Specified by:
handlein interfaceBooleanQueryResultHandler- Specified by:
handlein interfaceQueryResultHandler<Boolean>- Specified by:
handlein interfaceQueryResultWriter<Boolean>- Parameters:
theResult- the result- Throws:
ResultWritingFailed
-
format
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<Boolean>- Overrides:
formatin classAbstractSPARQLJSONWriter<Boolean>- Returns:
- the format
-