Package io.deephaven.importers
Class DirectoryImportTableFactory
java.lang.Object
io.deephaven.importers.ImportTableWriterFactoryBase
io.deephaven.importers.DirectoryImportTableFactory
- All Implemented Interfaces:
ImportTableWriterFactory
A table writer factory that takes a single destination directory.
-
Field Summary
Fields inherited from class io.deephaven.importers.ImportTableWriterFactoryBase
namespace, outputMode, tableDefinition, tableName, writableTableDefinition -
Constructor Summary
ConstructorsConstructorDescriptionDirectoryImportTableFactory(String namespace, String tableName, ImportOutputMode outputMode, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, File destinationDirectory) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetComputedColumnPartition(@Nullable String inputColumnPartition) The method is invoked to determine the partition value to which the current row of data needs to be associated.getTableDestination(String nullColumnPartitionValue) Get aFilerepresenting the path where the table will be written.Methods inherited from class io.deephaven.importers.ImportTableWriterFactoryBase
getLocalAppendableTable, getTableDefinition, getTableWriter, getTableWriterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.deephaven.importers.ImportTableWriterFactory
getTableWriter
-
Constructor Details
-
DirectoryImportTableFactory
public DirectoryImportTableFactory(String namespace, String tableName, ImportOutputMode outputMode, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, File destinationDirectory) - Parameters:
namespace- the namespacetableName- the table nameoutputMode- theImportOutputModeoutput modetableDefinition- theTableDefinitionfor the tabledestinationDirectory- the destination directory where the table will be written
-
-
Method Details
-
getTableDestination
Description copied from interface:ImportTableWriterFactoryGet aFilerepresenting 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 @Nullable String getComputedColumnPartition(@Nullable @Nullable String inputColumnPartition) Description copied from interface:ImportTableWriterFactoryThe 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 returnnullindicating that there is no valid column partition.- Parameters:
inputColumnPartition- the requested input partition- Returns:
- the computed column partition
-