Package io.substrait.proto
Enum Class AggregationPhase
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AggregationPhase>,Constable
public enum AggregationPhase
extends Enum<AggregationPhase>
implements com.google.protobuf.ProtocolMessageEnum
Describes which part of an aggregation or window function to perform within the context of distributed algorithms.Protobuf enum
substrait.AggregationPhase-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSpecifies that the function should be run only up to the point of generating an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.A complete invocation: the function should aggregate the given set of inputs to yield a single return value.Specifies that the inputs of the aggregate or window function are the intermediate values of the function, and that the output should also be an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.Specifies that the inputs of the aggregate or window function are the intermediate values of the function, generated previously using INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls.Implies `INTERMEDIATE_TO_RESULT`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSpecifies that the function should be run only up to the point of generating an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.static final intA complete invocation: the function should aggregate the given set of inputs to yield a single return value.static final intSpecifies that the inputs of the aggregate or window function are the intermediate values of the function, and that the output should also be an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.static final intSpecifies that the inputs of the aggregate or window function are the intermediate values of the function, generated previously using INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls.static final intImplies `INTERMEDIATE_TO_RESULT`. -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationPhaseforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AggregationPhase>static AggregationPhasevalueOf(int value) Deprecated.static AggregationPhasevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static AggregationPhaseReturns the enum constant of this class with the specified name.static AggregationPhase[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AGGREGATION_PHASE_UNSPECIFIED
Implies `INTERMEDIATE_TO_RESULT`.
AGGREGATION_PHASE_UNSPECIFIED = 0; -
AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE
Specifies that the function should be run only up to the point of generating an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE = 1; -
AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE
Specifies that the inputs of the aggregate or window function are the intermediate values of the function, and that the output should also be an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE = 2; -
AGGREGATION_PHASE_INITIAL_TO_RESULT
A complete invocation: the function should aggregate the given set of inputs to yield a single return value. This style must be used for aggregate or window functions that are not decomposable.
AGGREGATION_PHASE_INITIAL_TO_RESULT = 3; -
AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT
Specifies that the inputs of the aggregate or window function are the intermediate values of the function, generated previously using INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls. This call should combine the intermediate values to yield the final return value.
AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT = 4; -
UNRECOGNIZED
-
-
Field Details
-
AGGREGATION_PHASE_UNSPECIFIED_VALUE
public static final int AGGREGATION_PHASE_UNSPECIFIED_VALUEImplies `INTERMEDIATE_TO_RESULT`.
AGGREGATION_PHASE_UNSPECIFIED = 0;- See Also:
-
AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE_VALUE
public static final int AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE_VALUESpecifies that the function should be run only up to the point of generating an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
AGGREGATION_PHASE_INITIAL_TO_INTERMEDIATE = 1;- See Also:
-
AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE_VALUE
public static final int AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE_VALUESpecifies that the inputs of the aggregate or window function are the intermediate values of the function, and that the output should also be an intermediate value, to be further aggregated later using INTERMEDIATE_TO_INTERMEDIATE or INTERMEDIATE_TO_RESULT.
AGGREGATION_PHASE_INTERMEDIATE_TO_INTERMEDIATE = 2;- See Also:
-
AGGREGATION_PHASE_INITIAL_TO_RESULT_VALUE
public static final int AGGREGATION_PHASE_INITIAL_TO_RESULT_VALUEA complete invocation: the function should aggregate the given set of inputs to yield a single return value. This style must be used for aggregate or window functions that are not decomposable.
AGGREGATION_PHASE_INITIAL_TO_RESULT = 3;- See Also:
-
AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT_VALUE
public static final int AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT_VALUESpecifies that the inputs of the aggregate or window function are the intermediate values of the function, generated previously using INITIAL_TO_INTERMEDIATE and possibly INTERMEDIATE_TO_INTERMEDIATE calls. This call should combine the intermediate values to yield the final return value.
AGGREGATION_PHASE_INTERMEDIATE_TO_RESULT = 4;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-