public class TextTableQueryResultWriter extends AbstractDataExporterQueryResultWriter
SelectQueryResultWriter interface to output a nice looking text table with many
customization options. The column widths can be calculated by prefetching a specified amount of results with the
possibility of specifying minimum and maximum widths to override automatically calculated values. Any value that
overflows the column will be printed on multiple lines where the other values in the same row will be top-aligned.| Modifier and Type | Class and Description |
|---|---|
static class |
TextTableQueryResultWriter.TextTableQueryResultWriterFactory |
| Modifier and Type | Field and Description |
|---|---|
static com.stardog.stark.query.io.QueryResultFormat |
FORMAT
The format to identify this writer with name "TEXT", mime type "text/plain" and file extension "txt".
|
| Constructor and Description |
|---|
TextTableQueryResultWriter(OutputStream theOut,
Options theOptions) |
| Modifier and Type | Method and Description |
|---|---|
protected com.brsanthu.dataexporter.DataExporter |
createExporter()
Creates the exporter and sets its options
|
void |
end()
Signal that query processing has completed
|
long |
getStartTime()
Gets the current start time that will be used to display query execution time if summary is shown at the end.
|
boolean |
isShowSummary()
Returns true is the number of results and query execution time will be shown at the end.
|
void |
setShowSummary(boolean mShowSummary)
Turns on showing query summary at the end of results which includes the number of results and query execution
time.
|
void |
setStartTime(long theStartTime)
Sets the current start time that will be used to display query execution time if summary is shown at the end.
|
addNamespaces, format, handle, links, namespace, start, variablespublic static final com.stardog.stark.query.io.QueryResultFormat FORMAT
public TextTableQueryResultWriter(OutputStream theOut, @Nonnull Options theOptions)
public boolean isShowSummary()
public void setShowSummary(boolean mShowSummary)
public long getStartTime()
public void setStartTime(long theStartTime)
public void end()
end in interface com.stardog.stark.query.io.QueryResultWriter<BindingSet>end in interface QueryResultHandler<BindingSet>end in class AbstractDataExporterQueryResultWriterprotected com.brsanthu.dataexporter.DataExporter createExporter()
createExporter in class AbstractDataExporterQueryResultWriterCopyright © 2010-2016 Stardog Union. All Rights Reserved.