Enum SqlJsonUtils.PathMode
- java.lang.Object
-
- java.lang.Enum<SqlJsonUtils.PathMode>
-
- org.apache.flink.table.runtime.functions.SqlJsonUtils.PathMode
-
- All Implemented Interfaces:
Serializable
,Comparable<SqlJsonUtils.PathMode>
- Enclosing class:
- SqlJsonUtils
public static enum SqlJsonUtils.PathMode extends Enum<SqlJsonUtils.PathMode>
Path spec has two different modes: lax mode and strict mode. Lax mode suppresses any thrown exception and returns null, whereas strict mode throws exceptions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SqlJsonUtils.PathMode
valueOf(String name)
Returns the enum constant of this type with the specified name.static SqlJsonUtils.PathMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LAX
public static final SqlJsonUtils.PathMode LAX
-
STRICT
public static final SqlJsonUtils.PathMode STRICT
-
UNKNOWN
public static final SqlJsonUtils.PathMode UNKNOWN
-
NONE
public static final SqlJsonUtils.PathMode NONE
-
-
Method Detail
-
values
public static SqlJsonUtils.PathMode[] 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 (SqlJsonUtils.PathMode c : SqlJsonUtils.PathMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SqlJsonUtils.PathMode 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
-
-