Package com.stardog.stark.query.io
Interface QueryResultWriter<T>
- All Superinterfaces:
QueryResultHandler<T>
- All Known Subinterfaces:
BooleanQueryResultWriter,PathQueryResultWriter,SelectQueryResultWriter
- All Known Implementing Classes:
AbstractDataExporterQueryResultWriter,AbstractSPARQLJSONWriter,AbstractSPARQLXMLWriter,BinarySelectQueryResultWriter,HTMLQueryResultWriter,SPARQLCSVResultWriter,SPARQLJSONBooleanResultWriter,SPARQLJSONSelectResultWriter,SPARQLTSVResultWriter,SPARQLXMLBooleanResultWriter,SPARQLXMLSelectResultWriter,TextBooleanQueryResultWriter,TextPathQueryResultWriter,TextTablePathQueryResultWriter,TextTableQueryResultWriter
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Method Details
-
end
Description copied from interface:QueryResultHandlerSignal that query processing has completed- Specified by:
endin interfaceQueryResultHandler<T>- Throws:
ResultWritingFailed
-
links
Description copied from interface:QueryResultHandlerHandle the set of links from the result- Specified by:
linksin interfaceQueryResultHandler<T>- Parameters:
theLinks- The links- Throws:
ResultWritingFailed- See Also:
-
start
Indicates that writing has begun.- Specified by:
startin interfaceQueryResultHandler<T>- Throws:
ResultWritingFailed- if writing failed.- Implementation Requirements:
- This method can only be called once
-
handle
Description copied from interface:QueryResultHandlerHandle a result to a query- Specified by:
handlein interfaceQueryResultHandler<T>- Parameters:
theResult- the result- Throws:
ResultWritingFailed
-
namespace
- Throws:
ResultWritingFailed
-
format
Theformatthis writer will serialize output in- Returns:
- the format
-