public class CSVProcessor extends AbstractReportProcessor
CSVProcessor
coordinates the writing process for the raw CSV output.
A CSVWriter
is added to the private copy of the report to handle the output process.Modifier and Type | Field and Description |
---|---|
static String |
CSV_DATAROWNAME |
static String |
CSV_ENABLE_GROUPFOOTERS |
static String |
CSV_ENABLE_GROUPHEADERS |
static String |
CSV_ENABLE_ITEMBANDS |
static String |
CSV_ENABLE_REPORTFOOTER |
static String |
CSV_ENABLE_REPORTHEADER |
static String |
CSV_ENCODING |
static String |
CSV_SEPARATOR |
static String |
CSV_WRITE_STATECOLUMNS |
protected static int |
MAX_EVENTS_PER_RUN |
protected static int |
MIN_ROWS_PER_EVENT |
COMMIT_RATE
Constructor and Description |
---|
CSVProcessor(MasterReport report)
Creates a new
CSVProcessor . |
CSVProcessor(MasterReport report,
String separator)
Creates a new CSVProcessor.
|
CSVProcessor(MasterReport report,
String separator,
boolean writeDataRowNames)
Creates a new CSVProcessor.
|
Modifier and Type | Method and Description |
---|---|
protected OutputFunction |
createLayoutManager() |
Writer |
getWriter()
Returns the writer used in this Processor.
|
protected static boolean |
isStrictErrorHandling(Configuration config)
Deprecated.
No longer needed.
|
void |
setWriter(Writer writer)
Defines the writer which should be used to write the contents of the report.
|
addReportProgressListener, calculatePageCount, cancel, checkInterrupted, close, createProcessingContext, fireProcessingFinished, fireProcessingStarted, fireStateUpdate, getConfiguration, getLogicalPageCount, getLogicalPageState, getOutputProcessor, getOutputProcessorMetaData, getPhysicalPageCount, getPhysicalPageState, getProcessStateHandle, getReport, isFullStreamingProcessor, isHandleInterruptedState, isPaginated, isQueryLimitReached, paginate, prepareReportProcessing, processPage, processPrepareLevels, processReport, removeReportProgressListener, setFullStreamingProcessor, setHandleInterruptedState, setQueryLimitReached
protected static final int MAX_EVENTS_PER_RUN
protected static final int MIN_ROWS_PER_EVENT
public static final String CSV_SEPARATOR
public static final String CSV_ENCODING
public static final String CSV_DATAROWNAME
public static final String CSV_WRITE_STATECOLUMNS
public static final String CSV_ENABLE_REPORTHEADER
public static final String CSV_ENABLE_REPORTFOOTER
public static final String CSV_ENABLE_GROUPHEADERS
public static final String CSV_ENABLE_GROUPFOOTERS
public static final String CSV_ENABLE_ITEMBANDS
public CSVProcessor(MasterReport report) throws ReportProcessingException
CSVProcessor
. The processor will use a comma (",") to separate the column values, unless
defined otherwise in the report configuration. The processor creates a private copy of the clone, so that no change
to the original report will influence the report processing. DataRow names are not written.report
- the report to be processed.ReportProcessingException
- if the report initialisation failed.public CSVProcessor(MasterReport report, String separator) throws ReportProcessingException
report
- the report to be processed.separator
- the separator string to mark column boundaries.ReportProcessingException
- if the report initialisation failed.public CSVProcessor(MasterReport report, String separator, boolean writeDataRowNames) throws ReportProcessingException
report
- the report to be processed.separator
- the separator string to mark column boundaries.writeDataRowNames
- controls whether or not the data row names are output.ReportProcessingException
- if the report initialisation failed.public Writer getWriter()
public void setWriter(Writer writer)
writer
- the writer.protected OutputFunction createLayoutManager()
createLayoutManager
in class AbstractReportProcessor
protected static boolean isStrictErrorHandling(Configuration config)
config
- the configuration.Copyright © 2002–2017 Pentaho Corporation. All rights reserved.