Package org.apache.parquet.variant
Enum Variant.Type
- java.lang.Object
-
- java.lang.Enum<Variant.Type>
-
- org.apache.parquet.variant.Variant.Type
-
- All Implemented Interfaces:
Serializable,Comparable<Variant.Type>
- Enclosing class:
- Variant
public static enum Variant.Type extends Enum<Variant.Type>
The value type of Variant value. It is determined by the header byte.
-
-
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
-
BYTE
public static final Variant.Type BYTE
-
SHORT
public static final Variant.Type SHORT
-
INT
public static final Variant.Type INT
-
LONG
public static final Variant.Type LONG
-
STRING
public static final Variant.Type STRING
-
DOUBLE
public static final Variant.Type DOUBLE
-
DECIMAL4
public static final Variant.Type DECIMAL4
-
DECIMAL8
public static final Variant.Type DECIMAL8
-
DECIMAL16
public static final Variant.Type DECIMAL16
-
DATE
public static final Variant.Type DATE
-
TIMESTAMP_TZ
public static final Variant.Type TIMESTAMP_TZ
-
TIMESTAMP_NTZ
public static final Variant.Type TIMESTAMP_NTZ
-
FLOAT
public static final Variant.Type FLOAT
-
BINARY
public static final Variant.Type BINARY
-
TIME
public static final Variant.Type TIME
-
TIMESTAMP_NANOS_TZ
public static final Variant.Type TIMESTAMP_NANOS_TZ
-
TIMESTAMP_NANOS_NTZ
public static final Variant.Type TIMESTAMP_NANOS_NTZ
-
UUID
public static final Variant.Type UUID
-
-
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
-
-