Class LabelledResultsCSVWriterFactory
Object
org.anchoranalysis.feature.io.csv.results.LabelledResultsCSVWriterFactory
public class LabelledResultsCSVWriterFactory extends Object
Creates a new instance of
LabelledResultsCSVWriter.- Author:
- Owen Feehan
-
Method Summary
Modifier and Type Method Description static 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 org.anchoranalysis.io.output.error.OutputWriteFailedExceptionCreates 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:
org.anchoranalysis.io.output.error.OutputWriteFailedException- if a CSV for (non-aggregated) features fails to be created.
-