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 Details

    • create

      public static LabelledResultsCSVWriter create​(FeatureCSVMetadataForOutput outputMetadata, FeatureCSVWriterFactory writerCreator, Optional<Consumer<LabelledResultsVector>> consumeAfterAdding, boolean removeNaNColumns) throws org.anchoranalysis.io.output.error.OutputWriteFailedException
      Creates with appropriate support classes for outputting.
      Parameters:
      outputMetadata - metadata needed for determining output-names and CSV headers.
      writerCreator - when true, columns containing all Double.NaN values are removed before outputting.
      consumeAfterAdding - After adding a LabelledResultsVector, this function is also called, if it is defined.
      removeNaNColumns - when true, columns containing all Double.NaN values 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.