Class MultiPartitionImportTableWriterFactory

java.lang.Object
com.illumon.iris.importers.ImportTableWriterFactoryBase
com.illumon.iris.importers.MultiPartitionImportTableWriterFactory
All Implemented Interfaces:
ImportTableWriterFactory

public class MultiPartitionImportTableWriterFactory
extends ImportTableWriterFactoryBase
A table writer factory that accepts a partition at runtime (used when we want to use data from an import column to direct each row to a specific partition).
  • Constructor Details

  • Method Details

    • getTableDestination

      public File getTableDestination​(String columnPartitionValue)
      Description copied from interface: ImportTableWriterFactory
      Get a File representing the path where the table will be written.
      Parameters:
      columnPartitionValue - the column partition to find the destination for
      Returns:
      a file at the path the table will be written.
    • getComputedColumnPartition

      @Nullable public String getComputedColumnPartition​(@Nullable String inputColumnPartition)
      Description copied from interface: ImportTableWriterFactory
      Get the computed column partition for the requested one. In Most cases the result will be the same as inputColumnPartition, however it is possible to return null indicating that there is no valid column partition.
      Parameters:
      inputColumnPartition - the requested input partition
      Returns:
      the computed column partition