Package io.substrait.proto
Class Expression.ScalarFunction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.substrait.proto.Expression.ScalarFunction
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Expression.ScalarFunctionOrBuilder,Serializable
- Enclosing class:
- Expression
public static final class Expression.ScalarFunction
extends com.google.protobuf.GeneratedMessageV3
implements Expression.ScalarFunctionOrBuilder
A scalar function call.Protobuf type
substrait.Expression.ScalarFunction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA scalar function call.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 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 Expression.ScalarFunctionstatic final com.google.protobuf.Descriptors.DescriptorintPoints to a function_anchor defined in this plan, which must refer to a scalar function in the associated YAML file.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<Expression.ScalarFunction>intinthashCode()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 booleannewBuilder(Expression.ScalarFunction prototype) protected Expression.ScalarFunction.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static Expression.ScalarFunctionparseDelimitedFrom(InputStream input) static Expression.ScalarFunctionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Expression.ScalarFunctionparseFrom(byte[] data) static Expression.ScalarFunctionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Expression.ScalarFunctionparseFrom(com.google.protobuf.ByteString data) static Expression.ScalarFunctionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Expression.ScalarFunctionparseFrom(com.google.protobuf.CodedInputStream input) static Expression.ScalarFunctionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Expression.ScalarFunctionparseFrom(InputStream input) static Expression.ScalarFunctionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Expression.ScalarFunctionparseFrom(ByteBuffer data) static Expression.ScalarFunctionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Expression.ScalarFunction>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:
-
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 a scalar function in the associated YAML file. Required; avoid using anchor/reference zero.
uint32 function_reference = 1;- Specified by:
getFunctionReferencein interfaceExpression.ScalarFunctionOrBuilder- 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. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options.repeated .substrait.FunctionArgument arguments = 4;- Specified by:
getArgumentsListin interfaceExpression.ScalarFunctionOrBuilder
-
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. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options.repeated .substrait.FunctionArgument arguments = 4;- Specified by:
getArgumentsOrBuilderListin interfaceExpression.ScalarFunctionOrBuilder
-
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. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options.repeated .substrait.FunctionArgument arguments = 4;- Specified by:
getArgumentsCountin interfaceExpression.ScalarFunctionOrBuilder
-
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. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options.repeated .substrait.FunctionArgument arguments = 4;- Specified by:
getArgumentsin interfaceExpression.ScalarFunctionOrBuilder
-
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. - Enum arguments must be bound using FunctionArgument.enum followed by Enum.specified, with a string that case-insensitively matches one of the allowed options.repeated .substrait.FunctionArgument arguments = 4;- Specified by:
getArgumentsOrBuilderin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 5;- Specified by:
getOptionsListin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 5;- Specified by:
getOptionsOrBuilderListin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 5;- Specified by:
getOptionsCountin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 5;- Specified by:
getOptionsin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 5;- Specified by:
getOptionsOrBuilderin interfaceExpression.ScalarFunctionOrBuilder
-
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 = 3;- Specified by:
hasOutputTypein interfaceExpression.ScalarFunctionOrBuilder- 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 = 3;- Specified by:
getOutputTypein interfaceExpression.ScalarFunctionOrBuilder- 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 = 3;- Specified by:
getOutputTypeOrBuilderin interfaceExpression.ScalarFunctionOrBuilder
-
getArgsList
Deprecated.Deprecated; use arguments instead.
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsListin interfaceExpression.ScalarFunctionOrBuilder
-
getArgsOrBuilderList
Deprecated.Deprecated; use arguments instead.
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsOrBuilderListin interfaceExpression.ScalarFunctionOrBuilder
-
getArgsCount
Deprecated.Deprecated; use arguments instead.
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsCountin interfaceExpression.ScalarFunctionOrBuilder
-
getArgs
Deprecated.Deprecated; use arguments instead.
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsin interfaceExpression.ScalarFunctionOrBuilder
-
getArgsOrBuilder
Deprecated.Deprecated; use arguments instead.
repeated .substrait.Expression args = 2 [deprecated = true];- Specified by:
getArgsOrBuilderin interfaceExpression.ScalarFunctionOrBuilder
-
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 Expression.ScalarFunction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Expression.ScalarFunction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Expression.ScalarFunction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Expression.ScalarFunction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Expression.ScalarFunction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Expression.ScalarFunction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Expression.ScalarFunction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Expression.ScalarFunction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Expression.ScalarFunction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Expression.ScalarFunction 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 Expression.ScalarFunction.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
-