Package com.illumon.iris.importers
Class SinglePartitionImportTableFactory
java.lang.Object
com.illumon.iris.importers.ImportTableWriterFactoryBase
com.illumon.iris.importers.SinglePartitionImportTableFactory
- All Implemented Interfaces:
ImportTableWriterFactory
public class SinglePartitionImportTableFactory extends ImportTableWriterFactoryBase
-
Field Summary
Fields inherited from class com.illumon.iris.importers.ImportTableWriterFactoryBase
namespace, outputMode, tableDefinition, tableName, writableTableDefinition
-
Constructor Summary
Constructors Constructor Description SinglePartitionImportTableFactory(String namespace, String tableName, ImportOutputMode outputMode, TableDefinition tableDefinition, String internalPartition, String columnPartition)
-
Method Summary
Modifier and Type Method Description String
getComputedColumnPartition(String inputColumnPartition)
Get the computed column partition for the requested one.File
getTableDestination(String nullColumnPartitionValue)
Get aFile
representing the path where the table will be written.Methods inherited from class com.illumon.iris.importers.ImportTableWriterFactoryBase
getTableDefinition, getTableWriter, getTableWriter
-
Constructor Details
-
SinglePartitionImportTableFactory
public SinglePartitionImportTableFactory(String namespace, String tableName, ImportOutputMode outputMode, @NotNull TableDefinition tableDefinition, String internalPartition, String columnPartition)
-
-
Method Details
-
getTableDestination
Description copied from interface:ImportTableWriterFactory
Get aFile
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
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 returnnull
indicating that there is no valid column partition.- Parameters:
inputColumnPartition
- the requested input partition- Returns:
- the computed column partition
-