Package io.deephaven.importers
Class GeneralImporter<T extends ImportFieldWriter>
java.lang.Object
io.deephaven.importers.GeneralImporter<T>
- Type Parameters:
T- the type of ImportFieldWriter used by this importer
- Direct Known Subclasses:
GeneralCsvImporter,GeneralJdbcImporter
Abstract class providing methods used when importing data to be written to Deephaven columns.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classThis class is used to hold a TableWriter and its associated FieldWriters.class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ImportTableWriterFactoryprotected final Stringprotected final Loggerprotected final boolean -
Constructor Summary
ConstructorsConstructorDescriptionGeneralImporter(@NotNull Logger log, @NotNull ImportTableWriterFactory importTableWriterFactory, @Nullable String intradayPartitionColumn, boolean strict, @Nullable Map<String, String> customImportProperties) -
Method Summary
Modifier and TypeMethodDescriptionabstract TbuildEndOfRecordFieldWriter(io.deephaven.shadow.enterprise.com.illumon.iris.binarystore.TableWriter tableWriter) buildFieldWriterFactory(ImporterColumnDefinition name, Class setterType, Map<String, String> importProperties, String actualPartition) voidabstract Map<String,ImporterColumnDefinition> Get theImportTableWriterFactory.static intprotected GeneralImporter<T>.CacheEntryGet theGeneralImporter<T extends ImportFieldWriter>.CacheEntryfor the specified partition, creating a new one if necessary.static voidsetMaxOpenTableWriters(int maxWriters)
-
Field Details
-
log
-
importTableWriterFactory
-
intradayPartitionColumn
-
strict
protected final boolean strict -
customImportProperties
-
-
Constructor Details
-
GeneralImporter
-
-
Method Details
-
getTableEntry
protected GeneralImporter<T>.CacheEntry getTableEntry(String partition, List<String> columns, Map<String, String> importProperties) Get theGeneralImporter<T extends ImportFieldWriter>.CacheEntryfor the specified partition, creating a new one if necessary.- Parameters:
partition- the partition valuecolumns- the list of source columnsimportProperties- the import properties- Returns:
- the
GeneralImporter<T extends ImportFieldWriter>.CacheEntry
-
closeAllWriters
- Throws:
IOException- from the close calls
-
getColumnDefinitions
-
buildFieldWriterFactory
-
buildEndOfRecordFieldWriter
public abstract T buildEndOfRecordFieldWriter(io.deephaven.shadow.enterprise.com.illumon.iris.binarystore.TableWriter tableWriter) -
getMaxOpenTableWriters
public static int getMaxOpenTableWriters() -
setMaxOpenTableWriters
-
getImportTableWriterFactory
Get theImportTableWriterFactory.- Returns:
- the import table writer factory
-