Package io.substrait.proto
Interface AggregateFunctionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
AggregateFunction,AggregateFunction.Builder
public interface AggregateFunctionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetArgs(int index) Deprecated.intDeprecated.Deprecated.getArgsOrBuilder(int index) Deprecated.List<? extends ExpressionOrBuilder>Deprecated.getArguments(int index) The arguments to be bound to the function.intThe arguments to be bound to the function.The arguments to be bound to the function.getArgumentsOrBuilder(int index) The arguments to be bound to the function.List<? extends FunctionArgumentOrBuilder>The arguments to be bound to the function.intPoints to a function_anchor defined in this plan, which must refer to an aggregate function in the associated YAML file.Specifies whether equivalent records are merged before being aggregated.intSpecifies whether equivalent records are merged before being aggregated.getOptions(int index) Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.intOptions to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.getOptionsOrBuilder(int index) Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.List<? extends FunctionOptionOrBuilder>Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.Must be set to the return type of the function, exactly as derived using the declaration in the extension.Must be set to the return type of the function, exactly as derived using the declaration in the extension.getPhase()Describes which part of the aggregation to perform within the context of distributed algorithms.intDescribes which part of the aggregation to perform within the context of distributed algorithms.getSorts(int index) If specified, the aggregated records are ordered according to this list before they are aggregated.intIf specified, the aggregated records are ordered according to this list before they are aggregated.If specified, the aggregated records are ordered according to this list before they are aggregated.getSortsOrBuilder(int index) If specified, the aggregated records are ordered according to this list before they are aggregated.List<? extends SortFieldOrBuilder>If specified, the aggregated records are ordered according to this list before they are aggregated.booleanMust be set to the return type of the function, exactly as derived using the declaration in the extension.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getFunctionReference
int getFunctionReference()Points to a function_anchor defined in this plan, which must refer to an aggregate function in the associated YAML file. Required; 0 is considered to be a valid anchor/reference.
uint32 function_reference = 1;- Returns:
- The functionReference.
-
getArgumentsList
List<FunctionArgument> getArgumentsList()The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: - Value arguments must be bound using FunctionArgument.value, and the expression in that must yield a value of a type that a function overload is defined for. - Type arguments must be bound using FunctionArgument.type, and a function overload must be defined for that type. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options. - Optional enum arguments must be bound using FunctionArgument.enum followed by either Enum.specified or Enum.unspecified. If specified, the string must case-insensitively match one of the allowed options.repeated .substrait.FunctionArgument arguments = 7; -
getArguments
The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: - Value arguments must be bound using FunctionArgument.value, and the expression in that must yield a value of a type that a function overload is defined for. - Type arguments must be bound using FunctionArgument.type, and a function overload must be defined for that type. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options. - Optional enum arguments must be bound using FunctionArgument.enum followed by either Enum.specified or Enum.unspecified. If specified, the string must case-insensitively match one of the allowed options.repeated .substrait.FunctionArgument arguments = 7; -
getArgumentsCount
int getArgumentsCount()The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: - Value arguments must be bound using FunctionArgument.value, and the expression in that must yield a value of a type that a function overload is defined for. - Type arguments must be bound using FunctionArgument.type, and a function overload must be defined for that type. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options. - Optional enum arguments must be bound using FunctionArgument.enum followed by either Enum.specified or Enum.unspecified. If specified, the string must case-insensitively match one of the allowed options.repeated .substrait.FunctionArgument arguments = 7; -
getArgumentsOrBuilderList
List<? extends FunctionArgumentOrBuilder> getArgumentsOrBuilderList()The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: - Value arguments must be bound using FunctionArgument.value, and the expression in that must yield a value of a type that a function overload is defined for. - Type arguments must be bound using FunctionArgument.type, and a function overload must be defined for that type. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options. - Optional enum arguments must be bound using FunctionArgument.enum followed by either Enum.specified or Enum.unspecified. If specified, the string must case-insensitively match one of the allowed options.repeated .substrait.FunctionArgument arguments = 7; -
getArgumentsOrBuilder
The arguments to be bound to the function. This must have exactly the number of arguments specified in the function definition, and the argument types must also match exactly: - Value arguments must be bound using FunctionArgument.value, and the expression in that must yield a value of a type that a function overload is defined for. - Type arguments must be bound using FunctionArgument.type, and a function overload must be defined for that type. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options. - Optional enum arguments must be bound using FunctionArgument.enum followed by either Enum.specified or Enum.unspecified. If specified, the string must case-insensitively match one of the allowed options.repeated .substrait.FunctionArgument arguments = 7; -
getOptionsList
List<FunctionOption> getOptionsList()Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.
repeated .substrait.FunctionOption options = 8; -
getOptions
Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.
repeated .substrait.FunctionOption options = 8; -
getOptionsCount
int getOptionsCount()Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.
repeated .substrait.FunctionOption options = 8; -
getOptionsOrBuilderList
List<? extends FunctionOptionOrBuilder> getOptionsOrBuilderList()Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.
repeated .substrait.FunctionOption options = 8; -
getOptionsOrBuilder
Options to specify behavior for corner cases, or leave behavior unspecified if the consumer does not need specific behavior in these cases.
repeated .substrait.FunctionOption options = 8; -
hasOutputType
boolean hasOutputType()Must be set to the return type of the function, exactly as derived using the declaration in the extension.
.substrait.Type output_type = 5;- Returns:
- Whether the outputType field is set.
-
getOutputType
Type getOutputType()Must be set to the return type of the function, exactly as derived using the declaration in the extension.
.substrait.Type output_type = 5;- Returns:
- The outputType.
-
getOutputTypeOrBuilder
TypeOrBuilder getOutputTypeOrBuilder()Must be set to the return type of the function, exactly as derived using the declaration in the extension.
.substrait.Type output_type = 5; -
getPhaseValue
int getPhaseValue()Describes which part of the aggregation to perform within the context of distributed algorithms. Required. Must be set to INITIAL_TO_RESULT for aggregate functions that are not decomposable.
.substrait.AggregationPhase phase = 4;- Returns:
- The enum numeric value on the wire for phase.
-
getPhase
AggregationPhase getPhase()Describes which part of the aggregation to perform within the context of distributed algorithms. Required. Must be set to INITIAL_TO_RESULT for aggregate functions that are not decomposable.
.substrait.AggregationPhase phase = 4;- Returns:
- The phase.
-
getSortsList
If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is the next field queried. This field is optional.
repeated .substrait.SortField sorts = 3; -
getSorts
If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is the next field queried. This field is optional.
repeated .substrait.SortField sorts = 3; -
getSortsCount
int getSortsCount()If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is the next field queried. This field is optional.
repeated .substrait.SortField sorts = 3; -
getSortsOrBuilderList
List<? extends SortFieldOrBuilder> getSortsOrBuilderList()If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is the next field queried. This field is optional.
repeated .substrait.SortField sorts = 3; -
getSortsOrBuilder
If specified, the aggregated records are ordered according to this list before they are aggregated. The first sort field has the highest priority; only if a sort field determines two records to be equivalent is the next field queried. This field is optional.
repeated .substrait.SortField sorts = 3; -
getInvocationValue
int getInvocationValue()Specifies whether equivalent records are merged before being aggregated. Optional, defaults to AGGREGATION_INVOCATION_ALL.
.substrait.AggregateFunction.AggregationInvocation invocation = 6;- Returns:
- The enum numeric value on the wire for invocation.
-
getInvocation
AggregateFunction.AggregationInvocation getInvocation()Specifies whether equivalent records are merged before being aggregated. Optional, defaults to AGGREGATION_INVOCATION_ALL.
.substrait.AggregateFunction.AggregationInvocation invocation = 6;- Returns:
- The invocation.
-
getArgsList
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true]; -
getArgs
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true]; -
getArgsCount
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true]; -
getArgsOrBuilderList
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true]; -
getArgsOrBuilder
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];
-