Enum DateOutputFormat
- All Implemented Interfaces:
Serializable
,Comparable<DateOutputFormat>
Describes the default date output format to use for JSON. Drill's default behavior for text output formats is to use
a string which can be implicitly casted back to its original type (so the same format as the SQL literal format where
applicable). However, in JSON, we also can use extended types to specifically identify the data type of the output.
In this case, Drill outputs ISO standard formats rather than SQL formats to ensure comaptibility with other systems
(namely MongoDB).
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateOutputFormat
Returns the enum constant of this type with the specified name.static DateOutputFormat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SQL
The SQL literal format for dates. This means no timezone in times and a space in between the date and time for timestamp. -
ISO
The ISO standard format for dates/times.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-