Package io.deephaven.importers.csv
Class DateTimeFormatterPatternParserCreator
java.lang.Object
io.deephaven.importers.csv.DateTimeFormatterPatternParserCreator
- All Implemented Interfaces:
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.
- If supplied,
TIME_ZONE_ATTRIBUTEis used to specify the time zone used to parse data, otherwise the format pattern must include a way to determine the time zone from the data. FORMATTER_ATTRIBUTEprovides theDateTimeFormatterBuilder.appendPattern(String)pattern for parsing data.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAttribute name to specify theDateTimeFormatterformat, such as yyyy-MM-dd'T'HH:mm:ss.SSSstatic final StringAttribute name to specify a time zone to use for the parsing. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.deephaven.csv.parsers.Parser<long[]>create(@NotNull ImporterColumnDefinition importerColumnDefinition, @Nullable String columnPartitionValue) Create an instance of the parser.
-
Field Details
-
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
Attribute name to specify theDateTimeFormatterformat, 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:CsvParserCreatorCreate an instance of the parser.- Specified by:
createin interfaceCsvParserCreator- Parameters:
importerColumnDefinition- theImporterColumnDefinitionfor the columncolumnPartitionValue- an optional column partition value- Returns:
- the
Parser
-