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
      The method is invoked to determine the partition value to which the current row of data needs to be associated. So in the case where user wants a single partition value for the import this should return that value. In other cases this may simply return the passed in value, 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