Package org.apache.iceberg.hive
Enum HiveVersion
- java.lang.Object
-
- java.lang.Enum<HiveVersion>
-
- org.apache.iceberg.hive.HiveVersion
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<HiveVersion>
public enum HiveVersion extends java.lang.Enum<HiveVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HIVE_1_2
HIVE_2
HIVE_3
HIVE_4
NOT_SUPPORTED
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HiveVersion
current()
static boolean
min(HiveVersion other)
static HiveVersion
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static HiveVersion[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HIVE_4
public static final HiveVersion HIVE_4
-
HIVE_3
public static final HiveVersion HIVE_3
-
HIVE_2
public static final HiveVersion HIVE_2
-
HIVE_1_2
public static final HiveVersion HIVE_1_2
-
NOT_SUPPORTED
public static final HiveVersion NOT_SUPPORTED
-
-
Method Detail
-
values
public static HiveVersion[] 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 (HiveVersion c : HiveVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiveVersion 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
-
current
public static HiveVersion current()
-
min
public static boolean min(HiveVersion other)
-
-