Package io.prestosql.tests.hive
Enum BucketingType
- java.lang.Object
-
- java.lang.Enum<BucketingType>
-
- io.prestosql.tests.hive.BucketingType
-
- All Implemented Interfaces:
Serializable,Comparable<BucketingType>
public enum BucketingType extends Enum<BucketingType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUCKETED_DEFAULTBUCKETED_V1BUCKETED_V2NONE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract StringgetHiveClustering(String columnNames, int buckets)abstract List<String>getHiveTableProperties()abstract List<String>getPrestoTableProperties(String columnName, int buckets)static BucketingTypevalueOf(String name)Returns the enum constant of this type with the specified name.static BucketingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final BucketingType NONE
-
BUCKETED_DEFAULT
public static final BucketingType BUCKETED_DEFAULT
-
BUCKETED_V1
public static final BucketingType BUCKETED_V1
-
BUCKETED_V2
public static final BucketingType BUCKETED_V2
-
-
Method Detail
-
values
public static BucketingType[] 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 (BucketingType c : BucketingType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BucketingType 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
-
-