Class JsonExportStreamer
java.lang.Object
com.kingsrook.qqq.backend.core.actions.reporting.JsonExportStreamer
-
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
preRun
(ReportDestination reportDestination, List<QReportView> views) Called once, before any sheets are actually being produced.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
setDisplayFormats, setExportStyleCustomizer
-
Constructor Details
-
JsonExportStreamer
public JsonExportStreamer()
-
-
Method Details
-
preRun
public void preRun(ReportDestination reportDestination, List<QReportView> views) throws QReportingException Description copied from interface:ExportStreamerInterface
Called once, before any sheets are actually being produced.- Specified by:
preRun
in interfaceExportStreamerInterface
- Throws:
QReportingException
-
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
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
- Throws:
QReportingException
-