Class StreamingExportDataConsumer
java.lang.Object
ch.tocco.nice2.reporting.api.action.export.StreamingExportDataConsumer
- All Implemented Interfaces:
ExportDataConsumer
-
Constructor Summary
ConstructorsConstructorDescriptionStreamingExportDataConsumer(EntityExportWriter exportWriter, OutputStream outputStream, ExportActionConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoidacceptRows(List<Object[]> rows) Called once for every loaded partition of rows.voidend()Called once after all rows have been fetched.voidstart(List<ExportColumn> columns) Called once at beginning.
-
Constructor Details
-
StreamingExportDataConsumer
public StreamingExportDataConsumer(EntityExportWriter exportWriter, OutputStream outputStream, ExportActionConfig config)
-
-
Method Details
-
start
Description copied from interface:ExportDataConsumerCalled once at beginning.- Specified by:
startin interfaceExportDataConsumer- Parameters:
columns- the columns for the export- Throws:
IOException
-
acceptRows
Description copied from interface:ExportDataConsumerCalled once for every loaded partition of rows. So, this method is potentially called multiple times.- Specified by:
acceptRowsin interfaceExportDataConsumer- Parameters:
rows- the rows of the loaded partition- Throws:
IOException
-
end
Description copied from interface:ExportDataConsumerCalled once after all rows have been fetched.- Specified by:
endin interfaceExportDataConsumer- Throws:
IOException
-