Package org.apache.calcite.rel
Enum RelDistribution.Type
- java.lang.Object
-
- java.lang.Enum<RelDistribution.Type>
-
- org.apache.calcite.rel.RelDistribution.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RelDistribution.Type>
- Enclosing interface:
- RelDistribution
public static enum RelDistribution.Type extends java.lang.Enum<RelDistribution.Type>
Type of distribution.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANY
Not a valid distribution, but indicates that a consumer will accept any distribution.BROADCAST_DISTRIBUTED
There are multiple instances of the stream, and all records appear in each instance.HASH_DISTRIBUTED
There are multiple instances of the stream, and each instance contains records whose keys hash to a particular hash value.RANDOM_DISTRIBUTED
There are multiple instances of the stream, and each instance contains randomly chosen records.RANGE_DISTRIBUTED
There are multiple instances of the stream, and each instance contains records whose keys fall into a particular range.ROUND_ROBIN_DISTRIBUTED
There are multiple instances of the stream, and records are assigned to instances in turn.SINGLETON
There is only one instance of the stream.
-
Field Summary
Fields Modifier and Type Field Description java.lang.String
shortName
-
Constructor Summary
Constructors Modifier Constructor Description private
Type(java.lang.String shortName)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RelDistribution.Type
valueOf(java.lang.String name)
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 Detail
-
SINGLETON
public static final RelDistribution.Type SINGLETON
There is only one instance of the stream. It sees all records.
-
HASH_DISTRIBUTED
public static final RelDistribution.Type 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
public static final RelDistribution.Type 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
public static final RelDistribution.Type 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
public static final RelDistribution.Type 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
public static final RelDistribution.Type BROADCAST_DISTRIBUTED
There are multiple instances of the stream, and all records appear in each instance.
-
ANY
public static final RelDistribution.Type ANY
Not a valid distribution, but indicates that a consumer will accept any distribution.
-
-
Method Detail
-
values
public static RelDistribution.Type[] 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 (RelDistribution.Type c : RelDistribution.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RelDistribution.Type 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
-
-