Interface BaseCsvFieldWriter.CustomSetterFactory

All Known Implementing Classes:
BaseCsvFieldWriter.CustomSetterFactory.Default
Enclosing class:
BaseCsvFieldWriter

public static interface BaseCsvFieldWriter.CustomSetterFactory
Creates BaseFieldWriter for passed ImporterColumnDefinitions
  • 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 a CustomSetterValue and returns BaseCsvFieldWriter
      Parameters:
      column - The ImportColumnDefinition for which the field writer needs to be created
      delimiter - The passed down array delimiter
      constantColumnValue - The constant column value that should be accessible in the FieldWriter
      importProperties - The passed down import properties map
      actualPartition - 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 a BaseCsvFieldWriter
      Parameters:
      column - The ImportColumnDefinition for which the field writer needs to be created
      setter - The CustomSetter to set on the BaseFieldWriter
      delimiter - The passed down array delimiter
      constantColumnValue - The constant column value that should be accessible in the FieldWriter
      importProperties - The passed down import properties map
      actualPartition - The actual partition value in case of single partitions
      Returns:
      The Functional interface to retrieve the BaseFieldWriter