Class MultipleCSVWriter

java.lang.Object
es.upm.fi.cig.multictbnc.data.writer.MultipleCSVWriter

public class MultipleCSVWriter extends Object
Manages the writing of datasets into CSV files
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    write(Dataset dataset, String destinationPath)
    Writes the sequences of the provided dataset to multiple CSV files in the specified directory.
    static void
    write(Dataset dataset, List<String> featuresToInclude, String destinationPath)
    Writes the sequences of the provided dataset to multiple CSV files in the specified directory, including only the specified feature variables.
    static void
    write(Sequence sequence, String destinationPath, String nameFile)
    Writes a sequence to a CSV file in the specified directory.
    static void
    write(Sequence sequence, List<String> featuresToInclude, String destinationPath, String nameFile)
    Writes a sequence to a CSV file in the specified directory and including only the specified feature variables.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MultipleCSVWriter

      public MultipleCSVWriter()
  • Method Details

    • write

      public static void write(Dataset dataset, String destinationPath)
      Writes the sequences of the provided dataset to multiple CSV files in the specified directory.
      Parameters:
      dataset - dataset whose sequences are written to multiple CSV files
      destinationPath - directory path where the CSVs are stored
    • write

      public static void write(Sequence sequence, String destinationPath, String nameFile)
      Writes a sequence to a CSV file in the specified directory.
      Parameters:
      sequence - Sequence which is written to a CSV file
      destinationPath - directory path where the CSV is stored
      nameFile - name for the CSV file
    • write

      public static void write(Dataset dataset, List<String> featuresToInclude, String destinationPath)
      Writes the sequences of the provided dataset to multiple CSV files in the specified directory, including only the specified feature variables.
      Parameters:
      dataset - dataset whose sequences are written to multiple CSV files
      featuresToInclude - list of feature variables to include in the CSV files
      destinationPath - path where the CSVs are stored
    • write

      public static void write(Sequence sequence, List<String> featuresToInclude, String destinationPath, String nameFile)
      Writes a sequence to a CSV file in the specified directory and including only the specified feature variables.
      Parameters:
      sequence - Sequence which is written to a CSV file
      featuresToInclude - list of feature variables to include in the CSV
      destinationPath - directory path where the CSV is stored
      nameFile - name for the CSV file