Package org.apache.iceberg.variants
Enum PhysicalType
- java.lang.Object
-
- java.lang.Enum<PhysicalType>
-
- org.apache.iceberg.variants.PhysicalType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<PhysicalType>
public enum PhysicalType extends java.lang.Enum<PhysicalType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYBINARYBOOLEAN_FALSEBOOLEAN_TRUEDATEDECIMAL16DECIMAL4DECIMAL8DOUBLEFLOATINT16INT32INT64INT8NULLOBJECTSTRINGTIMESTAMPNTZTIMESTAMPTZ
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PhysicalTypefrom(int primitiveType)java.lang.Class<?>javaClass()static PhysicalTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PhysicalType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NULL
public static final PhysicalType NULL
-
BOOLEAN_TRUE
public static final PhysicalType BOOLEAN_TRUE
-
BOOLEAN_FALSE
public static final PhysicalType BOOLEAN_FALSE
-
INT8
public static final PhysicalType INT8
-
INT16
public static final PhysicalType INT16
-
INT32
public static final PhysicalType INT32
-
INT64
public static final PhysicalType INT64
-
DOUBLE
public static final PhysicalType DOUBLE
-
DECIMAL4
public static final PhysicalType DECIMAL4
-
DECIMAL8
public static final PhysicalType DECIMAL8
-
DECIMAL16
public static final PhysicalType DECIMAL16
-
DATE
public static final PhysicalType DATE
-
TIMESTAMPTZ
public static final PhysicalType TIMESTAMPTZ
-
TIMESTAMPNTZ
public static final PhysicalType TIMESTAMPNTZ
-
FLOAT
public static final PhysicalType FLOAT
-
BINARY
public static final PhysicalType BINARY
-
STRING
public static final PhysicalType STRING
-
ARRAY
public static final PhysicalType ARRAY
-
OBJECT
public static final PhysicalType OBJECT
-
-
Method Detail
-
values
public static PhysicalType[] 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 (PhysicalType c : PhysicalType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PhysicalType valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
javaClass
public java.lang.Class<?> javaClass()
-
from
public static PhysicalType from(int primitiveType)
-
-