Package com.illumon.iris.importers
Interface BaseCsvFieldWriter.CustomSetterFactory
- All Known Implementing Classes:
BaseCsvFieldWriter.CustomSetterFactory.Default
- Enclosing class:
- BaseCsvFieldWriter
public static interface BaseCsvFieldWriter.CustomSetterFactory
Creates BaseFieldWriter for passed ImporterColumnDefinitions
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
Default implementation ofBaseCsvFieldWriter.CustomSetterFactory
that can be used to create a CustomSetter -
Method Summary
Modifier and TypeMethodDescriptiondefault BaseCsvFieldWriter
create
(ImporterColumnDefinition column, CustomSetterValue<?> setter, String delimiter, String constantColumnValue, Map<String, String> importProperties, String actualPartition) Creates and returns aBaseCsvFieldWriter
createFactory
(ImporterColumnDefinition column, String delimiter, String constantColumnValue, Map<String, String> importProperties, String actualPartition) Creates and returns a Functional interface that takes aCustomSetterValue
and returnsBaseCsvFieldWriter
-
Method Details
-
createFactory
Function<CustomSetterValue<?>,BaseCsvFieldWriter> createFactory(ImporterColumnDefinition column, String delimiter, String constantColumnValue, Map<String, String> importProperties, String actualPartition) Creates and returns a Functional interface that takes aCustomSetterValue
and returnsBaseCsvFieldWriter
- Parameters:
column
- The ImportColumnDefinition for which the field writer needs to be createddelimiter
- The passed down array delimiterconstantColumnValue
- The constant column value that should be accessible in the FieldWriterimportProperties
- The passed down import properties mapactualPartition
- The actual partition value in case of single partitions- Returns:
- The Functional interface to retrieve the BaseFieldWriter
-
create
default BaseCsvFieldWriter create(ImporterColumnDefinition column, CustomSetterValue<?> setter, String delimiter, String constantColumnValue, Map<String, String> importProperties, String actualPartition) Creates and returns aBaseCsvFieldWriter
- Parameters:
column
- The ImportColumnDefinition for which the field writer needs to be createdsetter
- The CustomSetter to set on the BaseFieldWriterdelimiter
- The passed down array delimiterconstantColumnValue
- The constant column value that should be accessible in the FieldWriterimportProperties
- The passed down import properties mapactualPartition
- The actual partition value in case of single partitions- Returns:
- The Functional interface to retrieve the BaseFieldWriter
-