Class CsvExportStreamer
java.lang.Object
com.kingsrook.qqq.backend.core.actions.reporting.CsvExportStreamer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addRecords
(List<QRecord> qRecords) Called as records flow into the pipe.void
addTotalsRow
(QRecord record) void
finish()
Called after all sheets are complete.void
start
(ExportInput exportInput, List<QFieldMetaData> fields, String label, QReportView view) Called once per sheet, before any rows are available.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.actions.reporting.ExportStreamerInterface
preRun, setDisplayFormats, setExportStyleCustomizer
-
Constructor Details
-
CsvExportStreamer
public CsvExportStreamer()
-
-
Method Details
-
start
public void start(ExportInput exportInput, List<QFieldMetaData> fields, String label, QReportView view) throws QReportingException Description copied from interface:ExportStreamerInterface
Called once per sheet, before any rows are available. Meant to write a header, for example. If multiple sheets are being created, there is no separate end-sheet call. Rather, a new one will just get started...- Specified by:
start
in interfaceExportStreamerInterface
- Throws:
QReportingException
-
addRecords
Description copied from interface:ExportStreamerInterface
Called as records flow into the pipe.- Specified by:
addRecords
in interfaceExportStreamerInterface
- Throws:
QReportingException
-
addTotalsRow
- Specified by:
addTotalsRow
in interfaceExportStreamerInterface
- Throws:
QReportingException
-
finish
public void finish()Description copied from interface:ExportStreamerInterface
Called after all sheets are complete. Meant to do a final write, or close resources, for example.- Specified by:
finish
in interfaceExportStreamerInterface
-