Package org.apache.flink.types.variant
Enum Variant.Type
- java.lang.Object
-
- java.lang.Enum<Variant.Type>
-
- org.apache.flink.types.variant.Variant.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Variant.Type>
- Enclosing interface:
- Variant
@PublicEvolving public static enum Variant.Type extends Enum<Variant.Type>
The type of variant.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Variant.TypevalueOf(String name)Returns the enum constant of this type with the specified name.static Variant.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OBJECT
public static final Variant.Type OBJECT
-
ARRAY
public static final Variant.Type ARRAY
-
NULL
public static final Variant.Type NULL
-
BOOLEAN
public static final Variant.Type BOOLEAN
-
TINYINT
public static final Variant.Type TINYINT
-
SMALLINT
public static final Variant.Type SMALLINT
-
INT
public static final Variant.Type INT
-
BIGINT
public static final Variant.Type BIGINT
-
FLOAT
public static final Variant.Type FLOAT
-
DOUBLE
public static final Variant.Type DOUBLE
-
DECIMAL
public static final Variant.Type DECIMAL
-
STRING
public static final Variant.Type STRING
-
DATE
public static final Variant.Type DATE
-
TIMESTAMP
public static final Variant.Type TIMESTAMP
-
TIMESTAMP_LTZ
public static final Variant.Type TIMESTAMP_LTZ
-
BYTES
public static final Variant.Type BYTES
-
-
Method Detail
-
values
public static Variant.Type[] 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 (Variant.Type c : Variant.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Variant.Type 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
-
-