public abstract class AbstractDataExporterQueryResultWriter extends Object implements com.stardog.stark.query.io.SelectQueryResultWriter
| Modifier and Type | Field and Description |
|---|---|
protected int |
mColCount |
protected RDFValueColumn[] |
mColumns |
protected TextTabularOutput |
mExporter |
protected PrintStream |
mOut |
protected Object[] |
mResult |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDataExporterQueryResultWriter(OutputStream theOut,
Options theOptions,
com.stardog.stark.query.io.QueryResultFormat theFormat) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNamespaces(Iterable<Namespace> theNamespaces) |
protected abstract com.brsanthu.dataexporter.DataExporter |
createExporter()
Creates the exporter and sets its options
|
void |
end()
Signal that query processing has completed
|
com.stardog.stark.query.io.QueryResultFormat |
format() |
void |
handle(BindingSet theBinding)
Handle a result to a query
|
void |
links(List<String> theList)
Handle the set of links from the result
|
void |
namespace(String thePrefix,
String theIRI) |
void |
start()
Signal that query processing is starting
|
void |
variables(List<String> theSelectVars)
The variables in the projection of the query
|
protected final PrintStream mOut
protected TextTabularOutput mExporter
protected int mColCount
protected RDFValueColumn[] mColumns
protected Object[] mResult
protected AbstractDataExporterQueryResultWriter(OutputStream theOut, Options theOptions, com.stardog.stark.query.io.QueryResultFormat theFormat)
@Nonnull public com.stardog.stark.query.io.QueryResultFormat format()
format in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>public void links(@Nonnull List<String> theList)
links in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>links in interface QueryResultHandler<BindingSet>theList - The linkspublic void namespace(@Nonnull String thePrefix, @Nonnull String theIRI) throws com.stardog.stark.query.io.ResultWritingFailed
namespace in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>com.stardog.stark.query.io.ResultWritingFailedpublic void start()
start in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>start in interface QueryResultHandler<BindingSet>public void variables(@Nonnull List<String> theSelectVars)
variables in interface SelectQueryResultHandlertheSelectVars - the variablesSelectQueryResult.variables()public void handle(@Nonnull BindingSet theBinding)
handle in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>handle in interface QueryResultHandler<BindingSet>theBinding - the resultpublic void end()
end in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>end in interface QueryResultHandler<BindingSet>protected abstract com.brsanthu.dataexporter.DataExporter createExporter()
Copyright © 2010-2016 Stardog Union. All Rights Reserved.