Class CsvFieldWriter.Factory.Default

java.lang.Object
com.illumon.iris.importers.CsvFieldWriter.Factory.Default
All Implemented Interfaces:
CsvFieldWriter.Factory
Enclosing interface:
CsvFieldWriter.Factory

public static class CsvFieldWriter.Factory.Default
extends Object
implements CsvFieldWriter.Factory
  • Constructor Details

    • Default

      public Default​(com.fishlib.io.logger.Logger log, boolean strict)
  • Method Details

    • createFactory

      public Function<RowSetter,​CsvFieldWriter> createFactory​(ImporterColumnDefinition column, Class setterType, String delimiter, String constantColumnValue, Map<String,​String> importProperties, String actualPartition)
      Creates a field writer factory for the specified column
      Specified by:
      createFactory in interface CsvFieldWriter.Factory
      Parameters:
      column - the characteristics (sourceName, sourceType, formula, etc) of the ImportColumn and destination column in the Table.
      setterType - the type of the row setter that will receive data to be written to the Table (target type)
      delimiter - the delimiter character that may be needed for parsing embedded array data
      constantColumnValue - an optional constant String that will be made available as a column value for columns with a sourceType of ImporterColumnDefinition$IrisImportConstant
      Returns:
      a Function<RowSetter,CsvFieldWriter> object