Class StreamingExportDataConsumer
java.lang.Object
ch.tocco.nice2.reporting.api.action.export.StreamingExportDataConsumer
- All Implemented Interfaces:
ExportDataConsumer
-
Constructor Summary
ConstructorDescriptionStreamingExportDataConsumer
(EntityExportWriter exportWriter, OutputStream outputStream, ExportActionConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
acceptRows
(List<Object[]> rows) Called once for every loaded partition of rows.void
end()
Called once after all rows have been fetched.void
start
(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:ExportDataConsumer
Called once at beginning.- Specified by:
start
in interfaceExportDataConsumer
- Parameters:
columns
- the columns for the export- Throws:
IOException
-
acceptRows
Description copied from interface:ExportDataConsumer
Called once for every loaded partition of rows. So, this method is potentially called multiple times.- Specified by:
acceptRows
in interfaceExportDataConsumer
- Parameters:
rows
- the rows of the loaded partition- Throws:
IOException
-
end
Description copied from interface:ExportDataConsumer
Called once after all rows have been fetched.- Specified by:
end
in interfaceExportDataConsumer
- Throws:
IOException
-