Package io.deephaven.importers
Class PreviewImportTableWriterFactoryLocalAppendable
java.lang.Object
io.deephaven.importers.PreviewImportTableWriterFactoryBase<File>
io.deephaven.importers.PreviewImportTableWriterFactoryLocalAppendable
- All Implemented Interfaces:
ImportTableWriterFactory
public class PreviewImportTableWriterFactoryLocalAppendable
extends PreviewImportTableWriterFactoryBase<File>
ImportTableWriterFactory implementation used in Preview Import Table functionality, for use with
LocalAppendableTable functionality.-
Constructor Summary
ConstructorsConstructorDescriptionPreviewImportTableWriterFactoryLocalAppendable(@NotNull Schema schema, @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, @NotNull String internalPartitionValue, @Nullable String singlePartitionColumnPartitionValue) Constructor. -
Method Summary
Modifier and TypeMethodDescription@NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.appendable.local.LocalAppendableTablegetLocalAppendableTable(String inputColumnPartitionValue, boolean forceAppend) Returns theLocalAppendableTablefor given column partition value.protected TablegetRawTable(@NotNull String partitionValue, @NotNull File location) Returns the raw (un-partitioned)Tablefor a single partition value, given the stored per-partition value that was accumulated during the import.@NotNull FilegetTableDestination(String columnPartitionValue) Get aFilerepresenting the path where the table will be written.Methods inherited from class io.deephaven.importers.PreviewImportTableWriterFactoryBase
getComputedColumnPartition, getPreviewTable, getSinglePartitionColumnPartitionValue, getTableDefinition, getTableWriter
-
Constructor Details
-
PreviewImportTableWriterFactoryLocalAppendable
public PreviewImportTableWriterFactoryLocalAppendable(@NotNull @NotNull Schema schema, @NotNull @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.TableDefinition tableDefinition, @NotNull @NotNull String internalPartitionValue, @Nullable @Nullable String singlePartitionColumnPartitionValue) Constructor.- Parameters:
schema- theSchemafor the table being importedtableDefinition- theTableDefinitioninternalPartitionValue- the internal partition used in creating the location key for each partitionsinglePartitionColumnPartitionValue- optional partition value to use, must be specified in case of a single partition value imports
-
-
Method Details
-
getTableDestination
Description copied from interface:ImportTableWriterFactoryGet aFilerepresenting 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.
-
getLocalAppendableTable
@NotNull public @NotNull io.deephaven.shadow.enterprise.com.illumon.iris.db.tables.appendable.local.LocalAppendableTable getLocalAppendableTable(String inputColumnPartitionValue, boolean forceAppend) Description copied from interface:ImportTableWriterFactoryReturns theLocalAppendableTablefor given column partition value.- Specified by:
getLocalAppendableTablein interfaceImportTableWriterFactory- Overrides:
getLocalAppendableTablein classPreviewImportTableWriterFactoryBase<File>- Parameters:
inputColumnPartitionValue- the column partition to use. Some implementations allow nulls.forceAppend- When true, the LocalAppendableTable will be initialized to append to any existing data. When false, append/replace/fail behavior is implementation defined.- Returns:
- Returned appropriate
LocalAppendableTablefor column partition value.
-
getRawTable
protected Table getRawTable(@NotNull @NotNull String partitionValue, @NotNull @NotNull File location) Description copied from class:PreviewImportTableWriterFactoryBaseReturns the raw (un-partitioned)Tablefor a single partition value, given the stored per-partition value that was accumulated during the import.- Specified by:
getRawTablein classPreviewImportTableWriterFactoryBase<File>- Parameters:
partitionValue- the computed column-partition valuelocation- the per-partition resource for that partition- Returns:
- the raw table for the partition, without the partitioning column populated
-