Package org.apache.calcite.rel
Enum RelDistribution.Type
- All Implemented Interfaces:
Serializable
,Comparable<RelDistribution.Type>
,Constable
- Enclosing interface:
RelDistribution
Type of distribution.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNot a valid distribution, but indicates that a consumer will accept any distribution.There are multiple instances of the stream, and all records appear in each instance.There are multiple instances of the stream, and each instance contains records whose keys hash to a particular hash value.There are multiple instances of the stream, and each instance contains randomly chosen records.There are multiple instances of the stream, and each instance contains records whose keys fall into a particular range.There are multiple instances of the stream, and records are assigned to instances in turn.There is only one instance of the stream. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RelDistribution.Type
Returns the enum constant of this type with the specified name.static RelDistribution.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SINGLETON
There is only one instance of the stream. It sees all records. -
HASH_DISTRIBUTED
There are multiple instances of the stream, and each instance contains records whose keys hash to a particular hash value. Instances are disjoint; a given record appears on exactly one stream. -
RANGE_DISTRIBUTED
There are multiple instances of the stream, and each instance contains records whose keys fall into a particular range. Instances are disjoint; a given record appears on exactly one stream. -
RANDOM_DISTRIBUTED
There are multiple instances of the stream, and each instance contains randomly chosen records. Instances are disjoint; a given record appears on exactly one stream. -
ROUND_ROBIN_DISTRIBUTED
There are multiple instances of the stream, and records are assigned to instances in turn. Instances are disjoint; a given record appears on exactly one stream. -
BROADCAST_DISTRIBUTED
There are multiple instances of the stream, and all records appear in each instance. -
ANY
Not a valid distribution, but indicates that a consumer will accept any distribution.
-
-
Field Details
-
shortName
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-