Package com.illumon.iris.importers
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.importers.CsvFieldWriter.Factory
CsvFieldWriter.Factory.Default
-
Constructor Summary
Constructors Constructor Description Default(com.fishlib.io.logger.Logger log, boolean strict)
-
Method Summary
Modifier and Type Method Description 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
-
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 interfaceCsvFieldWriter.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 dataconstantColumnValue
- 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
-