Class CollectedRowsCounter
java.lang.Object
net.sf.jailer.subsetting.CollectedRowsCounter
- All Implemented Interfaces:
ProgressListener
Count the number of collected (and deleted) rows.
- Author:
- Ralf Wisser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcollected(int day, ModelElement modelElement, long rc) Rows have been collected.voidcollectionJobEnqueued(int day, ModelElement modelElement) A collection-job has been enqueued.voidcollectionJobStarted(int day, ModelElement modelElement) Collection of rows has been started.createStatistic(boolean forDelete, DataModel datamodel, ExportStatistic exportStatistic) Creates the statistic.voidRows have been exported.Gets the number of collected rows per table.Gets the number of deleted rows per table.voidNew stage has begun.voidExport is ready.voidUser should be warned.
-
Constructor Details
-
CollectedRowsCounter
public CollectedRowsCounter()
-
-
Method Details
-
getCollectedRowsCount
-
getDeletedRowsCount
-
createStatistic
public List<String> createStatistic(boolean forDelete, DataModel datamodel, ExportStatistic exportStatistic) Creates the statistic.- Parameters:
forDelete-trueto create a deletion statistic,falsefor an export statisticdatamodel- the data model used for display namesexportStatistic- if notnull, will be populated with the export row counts- Returns:
- the statistic as a list of formatted lines
-
collected
Description copied from interface:ProgressListenerRows have been collected.- Specified by:
collectedin interfaceProgressListener- Parameters:
day- the daymodelElement- the association or table which has been resolvedrc- the number of rows which have been collected
-
newStage
Description copied from interface:ProgressListenerNew stage has begun.- Specified by:
newStagein interfaceProgressListener- Parameters:
stage- the stageisErrorStage-trueif the stage represents an errorisFinalStage-trueif this is the final stage
-
exported
Description copied from interface:ProgressListenerRows have been exported.- Specified by:
exportedin interfaceProgressListener- Parameters:
table- the table from which the rows have been exportedrc- the number of rows
-
collectionJobEnqueued
Description copied from interface:ProgressListenerA collection-job has been enqueued.- Specified by:
collectionJobEnqueuedin interfaceProgressListener- Parameters:
day- the daymodelElement- the association or table to be resolved
-
collectionJobStarted
Description copied from interface:ProgressListenerCollection of rows has been started.- Specified by:
collectionJobStartedin interfaceProgressListener- Parameters:
day- the daymodelElement- the association or table to be resolved
-
prepareExport
Description copied from interface:ProgressListenerExport is ready. This might be cancelled.- Specified by:
prepareExportin interfaceProgressListener- Throws:
CancellationException
-
warn
User should be warned.- Specified by:
warnin interfaceProgressListener- Parameters:
msgSupplier- supplier for the warning message
-