Package io.prestosql.sql.planner
Enum SystemPartitioningHandle.SystemPartitionFunction
- java.lang.Object
-
- java.lang.Enum<SystemPartitioningHandle.SystemPartitionFunction>
-
- io.prestosql.sql.planner.SystemPartitioningHandle.SystemPartitionFunction
-
- All Implemented Interfaces:
Serializable
,Comparable<SystemPartitioningHandle.SystemPartitionFunction>
- Enclosing class:
- SystemPartitioningHandle
public static enum SystemPartitioningHandle.SystemPartitionFunction extends Enum<SystemPartitioningHandle.SystemPartitionFunction>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BROADCAST
HASH
ROUND_ROBIN
SINGLE
UNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BucketFunction
createBucketFunction(List<Type> partitionChannelTypes, boolean isHashPrecomputed, int bucketCount, BlockTypeOperators blockTypeOperators)
static SystemPartitioningHandle.SystemPartitionFunction
valueOf(String name)
Returns the enum constant of this type with the specified name.static SystemPartitioningHandle.SystemPartitionFunction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SINGLE
public static final SystemPartitioningHandle.SystemPartitionFunction SINGLE
-
HASH
public static final SystemPartitioningHandle.SystemPartitionFunction HASH
-
ROUND_ROBIN
public static final SystemPartitioningHandle.SystemPartitionFunction ROUND_ROBIN
-
BROADCAST
public static final SystemPartitioningHandle.SystemPartitionFunction BROADCAST
-
UNKNOWN
public static final SystemPartitioningHandle.SystemPartitionFunction UNKNOWN
-
-
Method Detail
-
values
public static SystemPartitioningHandle.SystemPartitionFunction[] 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 (SystemPartitioningHandle.SystemPartitionFunction c : SystemPartitioningHandle.SystemPartitionFunction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SystemPartitioningHandle.SystemPartitionFunction 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
-
createBucketFunction
public abstract BucketFunction createBucketFunction(List<Type> partitionChannelTypes, boolean isHashPrecomputed, int bucketCount, BlockTypeOperators blockTypeOperators)
-
-