Package io.trino.plugin.hive.util
Enum HiveBucketing.BucketingVersion
- java.lang.Object
-
- java.lang.Enum<HiveBucketing.BucketingVersion>
-
- io.trino.plugin.hive.util.HiveBucketing.BucketingVersion
-
- All Implemented Interfaces:
Serializable,Comparable<HiveBucketing.BucketingVersion>
- Enclosing class:
- HiveBucketing
public static enum HiveBucketing.BucketingVersion extends Enum<HiveBucketing.BucketingVersion>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUCKETING_V1BUCKETING_V2
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetVersion()static HiveBucketing.BucketingVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static HiveBucketing.BucketingVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BUCKETING_V1
public static final HiveBucketing.BucketingVersion BUCKETING_V1
-
BUCKETING_V2
public static final HiveBucketing.BucketingVersion BUCKETING_V2
-
-
Method Detail
-
values
public static HiveBucketing.BucketingVersion[] 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 (HiveBucketing.BucketingVersion c : HiveBucketing.BucketingVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HiveBucketing.BucketingVersion 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
-
getVersion
public int getVersion()
-
-