public abstract class AbstractQueryResultWriter extends Object implements QueryResultWriter, Sink
QueryResultWriters offering common functionality for query result writers.| Constructor and Description |
|---|
AbstractQueryResultWriter() |
| Modifier and Type | Method and Description |
|---|---|
FileFormat |
getFileFormat() |
Collection<RioSetting<?>> |
getSupportedSettings() |
WriterConfig |
getWriterConfig()
Retrieves the current writer configuration as a single object.
|
void |
handleSolution(BindingSet bindingSet) |
protected void |
handleSolutionImpl(BindingSet bindings)
Extending classes must implement this method instead of overriding
handleSolution(BindingSet) in order
to benefit from automatic handling of RDF* encoding. |
void |
setWriterConfig(WriterConfig config)
Sets all supplied writer configuration options.
|
void |
startQueryResult(List<String> bindingNames) |
protected boolean |
xsdStringToPlainLiteral() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendHeader, getQueryResultFormat, handleNamespace, handleStylesheet, startDocument, startHeaderendQueryResult, handleBoolean, handleLinksacceptsFileFormatpublic void setWriterConfig(WriterConfig config)
QueryResultWritersetWriterConfig in interface QueryResultWriterconfig - a writer configuration object.public WriterConfig getWriterConfig()
QueryResultWritergetWriterConfig in interface QueryResultWriterpublic Collection<RioSetting<?>> getSupportedSettings()
getSupportedSettings in interface QueryResultWriterRioSettings that are supported by this QueryResultWriter.public FileFormat getFileFormat()
getFileFormat in interface Sinkpublic void startQueryResult(List<String> bindingNames) throws TupleQueryResultHandlerException
startQueryResult in interface QueryResultHandlerTupleQueryResultHandlerExceptionpublic void handleSolution(BindingSet bindingSet) throws TupleQueryResultHandlerException
handleSolution in interface QueryResultHandlerTupleQueryResultHandlerExceptionprotected void handleSolutionImpl(BindingSet bindings) throws TupleQueryResultHandlerException
handleSolution(BindingSet) in order
to benefit from automatic handling of RDF* encoding.bindings - the solution to handleTupleQueryResultHandlerExceptionprotected boolean xsdStringToPlainLiteral()
Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.