Class SPARQLTSVResultWriter
java.lang.Object
com.stardog.stark.query.io.text.tsv.SPARQLTSVResultWriter
- All Implemented Interfaces:
QueryResultWriter<BindingSet>,SelectQueryResultWriter,QueryResultHandler<BindingSet>,SelectQueryResultHandler
Implementation of writing query results in SPARQL/TSV format.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDefault factory implementation forSPARQLTSVResultWriter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Signal that query processing has completedformat()Theformatthis writer will serialize output invoidhandle(BindingSet theBindings) Handle a result to a queryvoidHandle the set of links from the resultvoidvoidstart()Indicates that writing has begun.voidThe variables in the projection of the query
-
Constructor Details
-
SPARQLTSVResultWriter
-
-
Method Details
-
format
Theformatthis writer will serialize output in- Specified by:
formatin interfaceQueryResultWriter<BindingSet>- Returns:
- the format
-
end
public void end()Signal that query processing has completed- Specified by:
endin interfaceQueryResultHandler<BindingSet>- Specified by:
endin interfaceQueryResultWriter<BindingSet>
-
links
Handle the set of links from the result- Specified by:
linksin interfaceQueryResultHandler<BindingSet>- Specified by:
linksin interfaceQueryResultWriter<BindingSet>- Parameters:
theLinks- The links- See Also:
-
start
public void start()Description copied from interface:QueryResultWriterIndicates that writing has begun.- Specified by:
startin interfaceQueryResultHandler<BindingSet>- Specified by:
startin interfaceQueryResultWriter<BindingSet>
-
handle
Handle a result to a query- Specified by:
handlein interfaceQueryResultHandler<BindingSet>- Specified by:
handlein interfaceQueryResultWriter<BindingSet>- Parameters:
theBindings- the result- Throws:
ResultWritingFailed
-
namespace
- Specified by:
namespacein interfaceQueryResultWriter<BindingSet>- Throws:
ResultWritingFailed
-
variables
The variables in the projection of the query- Specified by:
variablesin interfaceSelectQueryResultHandler- Parameters:
theVars- the variables- See Also:
-