Enum DateOutputFormat

java.lang.Object
java.lang.Enum<DateOutputFormat>
org.apache.drill.exec.vector.complex.fn.DateOutputFormat
All Implemented Interfaces:
Serializable, Comparable<DateOutputFormat>

public enum DateOutputFormat extends Enum<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 Details

    • SQL

      public static final DateOutputFormat 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

      public static final DateOutputFormat ISO
      The ISO standard format for dates/times.
  • Method Details

    • values

      public static DateOutputFormat[] 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

      public static DateOutputFormat valueOf(String name)
      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 name
      NullPointerException - if the argument is null