Package io.trino.sql.tree
Enum JsonQuery.EmptyOrErrorBehavior
- java.lang.Object
-
- java.lang.Enum<JsonQuery.EmptyOrErrorBehavior>
-
- io.trino.sql.tree.JsonQuery.EmptyOrErrorBehavior
-
- All Implemented Interfaces:
Serializable,Comparable<JsonQuery.EmptyOrErrorBehavior>
- Enclosing class:
- JsonQuery
public static enum JsonQuery.EmptyOrErrorBehavior extends Enum<JsonQuery.EmptyOrErrorBehavior>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMPTY_ARRAYEMPTY_OBJECTERRORNULL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static JsonQuery.EmptyOrErrorBehaviorvalueOf(String name)Returns the enum constant of this type with the specified name.static JsonQuery.EmptyOrErrorBehavior[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final JsonQuery.EmptyOrErrorBehavior NULL
-
ERROR
public static final JsonQuery.EmptyOrErrorBehavior ERROR
-
EMPTY_ARRAY
public static final JsonQuery.EmptyOrErrorBehavior EMPTY_ARRAY
-
EMPTY_OBJECT
public static final JsonQuery.EmptyOrErrorBehavior EMPTY_OBJECT
-
-
Method Detail
-
values
public static JsonQuery.EmptyOrErrorBehavior[] 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 (JsonQuery.EmptyOrErrorBehavior c : JsonQuery.EmptyOrErrorBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static JsonQuery.EmptyOrErrorBehavior 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<JsonQuery.EmptyOrErrorBehavior>
-
-