Class CsvParserFactory
java.lang.Object
com.illumon.iris.importers.csv.parsers.CsvParserFactory
public class CsvParserFactory extends Object
-
Constructor Summary
Constructors Constructor Description CsvParserFactory()
-
Method Summary
Modifier and Type Method Description static void
updateParsers(PartitionUpdatesObserver partitionUpdatesObserver, BaseAppendableColumnSink[] columnSinks, io.deephaven.csv.CsvSpecs.Builder builder, Map<String,ImporterColumnDefinition> icdMap, CsvParserContext parserContext)
Updates the choice of parsers for each column based on column data type, and other attributes of its ImporterColumnDefinition.
-
Constructor Details
-
CsvParserFactory
public CsvParserFactory()
-
-
Method Details
-
updateParsers
public static void updateParsers(@NotNull PartitionUpdatesObserver partitionUpdatesObserver, @NotNull BaseAppendableColumnSink[] columnSinks, @NotNull io.deephaven.csv.CsvSpecs.Builder builder, @NotNull Map<String,ImporterColumnDefinition> icdMap, @NotNull CsvParserContext parserContext)Updates the choice of parsers for each column based on column data type, and other attributes of its ImporterColumnDefinition.- Parameters:
partitionUpdatesObserver
- The observer that would listen to partition updates, currently that would be AppendableTableWrappercolumnSinks
- The column wrappersbuilder
- The CsvSpecs.Builder to update with specific parser by columnicdMap
- The column name to ImporterColumnDefinition mapparserContext
- The context object that holds common attributes passed down and needed by all Custom Parsers
-