Class CsvFieldWriter


public abstract class CsvFieldWriter extends BaseCsvFieldWriter
Abstract class providing methods used when reading data from CSV files to be written to Deephaven columns.
  • Constructor Details

    • CsvFieldWriter

      public CsvFieldWriter(Logger log, String dbColumnName, String delimiter)
      Parameters:
      log - the Logger to use for logging
      dbColumnName - the column name
      delimiter - the delimiter
  • Method Details

    • processValues

      public abstract List<CustomSetterValue<?>> processValues(@NotNull @NotNull Map<String,Object[]> columnNameToValueMap, int size, long destEnd) throws RowProcessingException
      The method is invoked by the CustomSetter Column Parser by incorporating the values from all dependent columns If dependent columns are not provided then the map would contain values from all the columns Note no change for Constant Column values they need to be retrieved using ImportFieldWriter.getConstantColumnValue(String)
      Overrides:
      processValues in class BaseCsvFieldWriter
      Parameters:
      columnNameToValueMap - The column name to corresponding CustomValue array map
      size - The size of the chunk, which is the same as the size of CustomSetterValue array in the map
      destEnd - The exclusive end index of the destination range.
      Returns:
      The processed custom setter column values for each row
      Throws:
      RowProcessingException - Thrown if processing errors occur when parsing to create Csv records