Class DirectoryImportTableFactory

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

public class DirectoryImportTableFactory
extends ImportTableWriterFactoryBase
A table writer factory that takes a single destination directory.
  • Constructor Details

  • Method Details

    • getTableDestination

      public File getTableDestination​(String nullColumnPartitionValue)
      Description copied from interface: ImportTableWriterFactory
      Get a File representing the path where the table will be written.
      Parameters:
      nullColumnPartitionValue - 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