Package io.substrait.proto
Class AggregateFunction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.substrait.proto.AggregateFunction
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,AggregateFunctionOrBuilder,Serializable
public final class AggregateFunction
extends com.google.protobuf.GeneratedMessageV3
implements AggregateFunctionOrBuilder
An aggregate function.Protobuf type
substrait.AggregateFunction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumMethod in which equivalent records are merged before being aggregated.static final classAn aggregate function.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetArgs(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.static AggregateFunctionstatic final com.google.protobuf.Descriptors.DescriptorintPoints 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.com.google.protobuf.Parser<AggregateFunction>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.intgetSorts(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.inthashCode()booleanMust be set to the return type of the function, exactly as derived using the declaration in the extension.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic AggregateFunction.Builderstatic AggregateFunction.BuildernewBuilder(AggregateFunction prototype) protected AggregateFunction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static AggregateFunctionparseDelimitedFrom(InputStream input) static AggregateFunctionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AggregateFunctionparseFrom(byte[] data) static AggregateFunctionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AggregateFunctionparseFrom(com.google.protobuf.ByteString data) static AggregateFunctionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AggregateFunctionparseFrom(com.google.protobuf.CodedInputStream input) static AggregateFunctionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AggregateFunctionparseFrom(InputStream input) static AggregateFunctionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static AggregateFunctionparseFrom(ByteBuffer data) static AggregateFunctionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<AggregateFunction>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
FUNCTION_REFERENCE_FIELD_NUMBER
public static final int FUNCTION_REFERENCE_FIELD_NUMBER- See Also:
-
ARGUMENTS_FIELD_NUMBER
public static final int ARGUMENTS_FIELD_NUMBER- See Also:
-
OPTIONS_FIELD_NUMBER
public static final int OPTIONS_FIELD_NUMBER- See Also:
-
OUTPUT_TYPE_FIELD_NUMBER
public static final int OUTPUT_TYPE_FIELD_NUMBER- See Also:
-
PHASE_FIELD_NUMBER
public static final int PHASE_FIELD_NUMBER- See Also:
-
SORTS_FIELD_NUMBER
public static final int SORTS_FIELD_NUMBER- See Also:
-
INVOCATION_FIELD_NUMBER
public static final int INVOCATION_FIELD_NUMBER- See Also:
-
ARGS_FIELD_NUMBER
public static final int ARGS_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getFunctionReference
public 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;- Specified by:
getFunctionReferencein interfaceAggregateFunctionOrBuilder- Returns:
- The functionReference.
-
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;- Specified by:
getArgumentsListin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getArgumentsOrBuilderListin interfaceAggregateFunctionOrBuilder
-
getArgumentsCount
public 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;- Specified by:
getArgumentsCountin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getArgumentsin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getArgumentsOrBuilderin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getOptionsListin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getOptionsOrBuilderListin interfaceAggregateFunctionOrBuilder
-
getOptionsCount
public 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;- Specified by:
getOptionsCountin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getOptionsin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getOptionsOrBuilderin interfaceAggregateFunctionOrBuilder
-
hasOutputType
public 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;- Specified by:
hasOutputTypein interfaceAggregateFunctionOrBuilder- Returns:
- Whether the outputType field is set.
-
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;- Specified by:
getOutputTypein interfaceAggregateFunctionOrBuilder- Returns:
- The outputType.
-
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;- Specified by:
getOutputTypeOrBuilderin interfaceAggregateFunctionOrBuilder
-
getPhaseValue
public 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;- Specified by:
getPhaseValuein interfaceAggregateFunctionOrBuilder- Returns:
- The enum numeric value on the wire for phase.
-
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;- Specified by:
getPhasein interfaceAggregateFunctionOrBuilder- 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;- Specified by:
getSortsListin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getSortsOrBuilderListin interfaceAggregateFunctionOrBuilder
-
getSortsCount
public 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;- Specified by:
getSortsCountin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getSortsin interfaceAggregateFunctionOrBuilder
-
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;- Specified by:
getSortsOrBuilderin interfaceAggregateFunctionOrBuilder
-
getInvocationValue
public int getInvocationValue()Specifies whether equivalent records are merged before being aggregated. Optional, defaults to AGGREGATION_INVOCATION_ALL.
.substrait.AggregateFunction.AggregationInvocation invocation = 6;- Specified by:
getInvocationValuein interfaceAggregateFunctionOrBuilder- Returns:
- The enum numeric value on the wire for invocation.
-
getInvocation
Specifies whether equivalent records are merged before being aggregated. Optional, defaults to AGGREGATION_INVOCATION_ALL.
.substrait.AggregateFunction.AggregationInvocation invocation = 6;- Specified by:
getInvocationin interfaceAggregateFunctionOrBuilder- Returns:
- The invocation.
-
getArgsList
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsListin interfaceAggregateFunctionOrBuilder
-
getArgsOrBuilderList
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsOrBuilderListin interfaceAggregateFunctionOrBuilder
-
getArgsCount
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsCountin interfaceAggregateFunctionOrBuilder
-
getArgs
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsin interfaceAggregateFunctionOrBuilder
-
getArgsOrBuilder
Deprecated.deprecated; use arguments instead
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsOrBuilderin interfaceAggregateFunctionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static AggregateFunction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregateFunction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregateFunction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregateFunction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregateFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static AggregateFunction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static AggregateFunction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static AggregateFunction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static AggregateFunction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static AggregateFunction parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected AggregateFunction.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-