Class LabelledResultsCSVWriterFactory
Object
LabelledResultsCSVWriterFactory
Creates a new instance of
LabelledResultsCSVWriter.- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionstatic LabelledResultsCSVWritercreate(FeatureCSVMetadataForOutput outputMetadata, FeatureCSVWriterFactory writerCreator, Optional<Consumer<LabelledResultsVector>> consumeAfterAdding, boolean removeNaNColumns) Creates with appropriate support classes for outputting.
-
Method Details
-
create
public static LabelledResultsCSVWriter create(FeatureCSVMetadataForOutput outputMetadata, FeatureCSVWriterFactory writerCreator, Optional<Consumer<LabelledResultsVector>> consumeAfterAdding, boolean removeNaNColumns) throws OutputWriteFailedException Creates with appropriate support classes for outputting.- Parameters:
outputMetadata- metadata needed for determining output-names and CSV headers.writerCreator- when true, columns containing allDouble.NaNvalues are removed before outputting.consumeAfterAdding- After adding aLabelledResultsVector, this function is also called, if it is defined.removeNaNColumns- when true, columns containing allDouble.NaNvalues are removed before outputting.- Returns:
- a newly created
LabelledResultsCollector. - Throws:
OutputWriteFailedException- if a CSV for (non-aggregated) features fails to be created.
-