Package io.prestosql.tests.hive
Enum BucketingType
- java.lang.Object
-
- java.lang.Enum<BucketingType>
-
- io.prestosql.tests.hive.BucketingType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<BucketingType>
public enum BucketingType extends java.lang.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 java.lang.StringgetHiveClustering(java.lang.String columnNames, int buckets)abstract java.util.List<java.lang.String>getHiveTableProperties()abstract java.util.List<java.lang.String>getPrestoTableProperties(java.lang.String columnName, int buckets)static BucketingTypevalueOf(java.lang.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(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
-
getHiveClustering
public abstract java.lang.String getHiveClustering(java.lang.String columnNames, int buckets)
-
getHiveTableProperties
public abstract java.util.List<java.lang.String> getHiveTableProperties()
-
getPrestoTableProperties
public abstract java.util.List<java.lang.String> getPrestoTableProperties(java.lang.String columnName, int buckets)
-
-