Class DateTimeFormatterPatternParserCreator

java.lang.Object
io.deephaven.importers.csv.DateTimeFormatterPatternParserCreator
All Implemented Interfaces:
CsvParserCreator

public class DateTimeFormatterPatternParserCreator extends Object implements CsvParserCreator
Implementation of CsvParserCreator to create an instance DateTimeFormatterParser. This creator class is expected to be referenced from a Deephaven Schema for an Instant column. The following attributes are defined within the schema's ImportSource column definitions.
  • Field Details

    • TIME_ZONE_ATTRIBUTE

      public static final String TIME_ZONE_ATTRIBUTE
      Attribute name to specify a time zone to use for the parsing. If it's not specified then the time zone must be parsed with the formatter.
      See Also:
    • FORMATTER_ATTRIBUTE

      public static final String FORMATTER_ATTRIBUTE
      Attribute name to specify the DateTimeFormatter format, such as yyyy-MM-dd'T'HH:mm:ss.SSS
      See Also:
  • Constructor Details

    • DateTimeFormatterPatternParserCreator

      public DateTimeFormatterPatternParserCreator()
  • Method Details

    • create

      public io.deephaven.csv.parsers.Parser<long[]> create(@NotNull @NotNull ImporterColumnDefinition importerColumnDefinition, @Nullable @Nullable String columnPartitionValue)
      Description copied from interface: CsvParserCreator
      Create an instance of the parser.
      Specified by:
      create in interface CsvParserCreator
      Parameters:
      importerColumnDefinition - the ImporterColumnDefinition for the column
      columnPartitionValue - an optional column partition value
      Returns:
      the Parser