Package io.trino.sql.tree
Enum JsonPathParameter.JsonFormat
- java.lang.Object
-
- java.lang.Enum<JsonPathParameter.JsonFormat>
-
- io.trino.sql.tree.JsonPathParameter.JsonFormat
-
- All Implemented Interfaces:
Serializable,Comparable<JsonPathParameter.JsonFormat>
- Enclosing class:
- JsonPathParameter
public static enum JsonPathParameter.JsonFormat extends Enum<JsonPathParameter.JsonFormat>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static JsonPathParameter.JsonFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static JsonPathParameter.JsonFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
JSON
public static final JsonPathParameter.JsonFormat JSON
-
UTF8
public static final JsonPathParameter.JsonFormat UTF8
-
UTF16
public static final JsonPathParameter.JsonFormat UTF16
-
UTF32
public static final JsonPathParameter.JsonFormat UTF32
-
-
Method Detail
-
values
public static JsonPathParameter.JsonFormat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (JsonPathParameter.JsonFormat c : JsonPathParameter.JsonFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonPathParameter.JsonFormat 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<JsonPathParameter.JsonFormat>
-
-