Class JsonExportStreamer
java.lang.Object
com.kingsrook.qqq.backend.core.actions.reporting.JsonExportStreamer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRecords(List<QRecord> qRecords) Called as records flow into the pipe.voidaddTotalsRow(QRecord record) voidfinish()Called after all sheets are complete.voidpreRun(ReportDestination reportDestination, List<QReportView> views) Called once, before any sheets are actually being produced.voidstart(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, waitMethods 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:ExportStreamerInterfaceCalled once, before any sheets are actually being produced.- Specified by:
preRunin interfaceExportStreamerInterface- Throws:
QReportingException
-
start
public void start(ExportInput exportInput, List<QFieldMetaData> fields, String label, QReportView view) throws QReportingException Description copied from interface:ExportStreamerInterfaceCalled 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:
startin interfaceExportStreamerInterface- Throws:
QReportingException
-
addRecords
Description copied from interface:ExportStreamerInterfaceCalled as records flow into the pipe.- Specified by:
addRecordsin interfaceExportStreamerInterface- Throws:
QReportingException
-
addTotalsRow
- Specified by:
addTotalsRowin interfaceExportStreamerInterface- Throws:
QReportingException
-
finish
Description copied from interface:ExportStreamerInterfaceCalled after all sheets are complete. Meant to do a final write, or close resources, for example.- Specified by:
finishin interfaceExportStreamerInterface- Throws:
QReportingException
-