Enum CharLiteralStyle

java.lang.Object
java.lang.Enum<CharLiteralStyle>
org.apache.calcite.config.CharLiteralStyle
All Implemented Interfaces:
Serializable, Comparable<CharLiteralStyle>, Constable

public enum CharLiteralStyle extends Enum<CharLiteralStyle>
Styles of character literal.
See Also:
  • Enum Constant Details

    • STANDARD

      public static final CharLiteralStyle STANDARD
      Standard character literal. Enclosed in single quotes, using single quotes to escape. Example: 'Won''t'.
    • BQ_SINGLE

      public static final CharLiteralStyle BQ_SINGLE
      Single-quoted character literal with backslash escapes, as in BigQuery. Example: 'Won\'t'.
    • BQ_DOUBLE

      public static final CharLiteralStyle BQ_DOUBLE
      Double-quoted character literal with backslash escapes, as in BigQuery. Example: "Won\'t".
  • Method Details

    • values

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