Package org.apache.flink.fnexecution.v1
Class FlinkFnApi.UserDefinedFunction.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
org.apache.flink.fnexecution.v1.FlinkFnApi.UserDefinedFunction.Builder
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable,FlinkFnApi.UserDefinedFunctionOrBuilder
- Enclosing class:
- FlinkFnApi.UserDefinedFunction
public static final class FlinkFnApi.UserDefinedFunction.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
implements FlinkFnApi.UserDefinedFunctionOrBuilder
User-defined function definition. It supports chaining functions, that's, the execution result of one user-defined function as the input of another user-defined function.Protobuf type
org.apache.flink.fn_execution.v1.UserDefinedFunction-
Method Summary
Modifier and TypeMethodDescriptionaddAllInputs(Iterable<? extends FlinkFnApi.Input> values) The input arguments of the user-defined function, it could be one of the following: 1.addInputs(int index, FlinkFnApi.Input value) The input arguments of the user-defined function, it could be one of the following: 1.addInputs(int index, FlinkFnApi.Input.Builder builderForValue) The input arguments of the user-defined function, it could be one of the following: 1.addInputs(FlinkFnApi.Input value) The input arguments of the user-defined function, it could be one of the following: 1.addInputs(FlinkFnApi.Input.Builder builderForValue) The input arguments of the user-defined function, it could be one of the following: 1.The input arguments of the user-defined function, it could be one of the following: 1.addInputsBuilder(int index) The input arguments of the user-defined function, it could be one of the following: 1.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()clearField(com.google.protobuf.Descriptors.FieldDescriptor field) The input arguments of the user-defined function, it could be one of the following: 1.Whether it's pandas UDFclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The serialized representation of the user-defined functionWhether the UDF takes row as input instead of each columns of a rowThe index of the over window used in pandas batch over window aggregationclone()static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetInputs(int index) The input arguments of the user-defined function, it could be one of the following: 1.getInputsBuilder(int index) The input arguments of the user-defined function, it could be one of the following: 1.The input arguments of the user-defined function, it could be one of the following: 1.intThe input arguments of the user-defined function, it could be one of the following: 1.The input arguments of the user-defined function, it could be one of the following: 1.getInputsOrBuilder(int index) The input arguments of the user-defined function, it could be one of the following: 1.List<? extends FlinkFnApi.InputOrBuilder>The input arguments of the user-defined function, it could be one of the following: 1.booleanWhether it's pandas UDFcom.google.protobuf.ByteStringThe serialized representation of the user-defined functionbooleanWhether the UDF takes row as input instead of each columns of a rowintThe index of the over window used in pandas batch over window aggregationprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeInputs(int index) The input arguments of the user-defined function, it could be one of the following: 1.setInputs(int index, FlinkFnApi.Input value) The input arguments of the user-defined function, it could be one of the following: 1.setInputs(int index, FlinkFnApi.Input.Builder builderForValue) The input arguments of the user-defined function, it could be one of the following: 1.setIsPandasUdf(boolean value) Whether it's pandas UDFsetPayload(com.google.protobuf.ByteString value) The serialized representation of the user-defined functionsetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setTakesRowAsInput(boolean value) Whether the UDF takes row as input instead of each columns of a rowsetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setWindowIndex(int value) The index of the over window used in pandas batch over window aggregationMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
setField
public FlinkFnApi.UserDefinedFunction.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
clearField
public FlinkFnApi.UserDefinedFunction.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
clearOneof
public FlinkFnApi.UserDefinedFunction.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
setRepeatedField
public FlinkFnApi.UserDefinedFunction.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
addRepeatedField
public FlinkFnApi.UserDefinedFunction.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
mergeFrom
public FlinkFnApi.UserDefinedFunction.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlinkFnApi.UserDefinedFunction.Builder>- Throws:
IOException
-
getPayload
public com.google.protobuf.ByteString getPayload()The serialized representation of the user-defined function
bytes payload = 1;- Specified by:
getPayloadin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder- Returns:
- The payload.
-
setPayload
The serialized representation of the user-defined function
bytes payload = 1;- Parameters:
value- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
The serialized representation of the user-defined function
bytes payload = 1;- Returns:
- This builder for chaining.
-
getInputsList
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2;- Specified by:
getInputsListin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder
-
getInputsCount
public int getInputsCount()The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2;- Specified by:
getInputsCountin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder
-
getInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2;- Specified by:
getInputsin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder
-
setInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
setInputs
public FlinkFnApi.UserDefinedFunction.Builder setInputs(int index, FlinkFnApi.Input.Builder builderForValue) The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addInputs
public FlinkFnApi.UserDefinedFunction.Builder addInputs(int index, FlinkFnApi.Input.Builder builderForValue) The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addAllInputs
public FlinkFnApi.UserDefinedFunction.Builder addAllInputs(Iterable<? extends FlinkFnApi.Input> values) The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
clearInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
removeInputs
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
getInputsBuilder
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
getInputsOrBuilder
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2;- Specified by:
getInputsOrBuilderin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder
-
getInputsOrBuilderList
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2;- Specified by:
getInputsOrBuilderListin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder
-
addInputsBuilder
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
addInputsBuilder
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
getInputsBuilderList
The input arguments of the user-defined function, it could be one of the following: 1. A column from the input row 2. The result of another user-defined function 3. The constant value of the column
repeated .org.apache.flink.fn_execution.v1.Input inputs = 2; -
getWindowIndex
public int getWindowIndex()The index of the over window used in pandas batch over window aggregation
int32 window_index = 3;- Specified by:
getWindowIndexin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder- Returns:
- The windowIndex.
-
setWindowIndex
The index of the over window used in pandas batch over window aggregation
int32 window_index = 3;- Parameters:
value- The windowIndex to set.- Returns:
- This builder for chaining.
-
clearWindowIndex
The index of the over window used in pandas batch over window aggregation
int32 window_index = 3;- Returns:
- This builder for chaining.
-
getTakesRowAsInput
public boolean getTakesRowAsInput()Whether the UDF takes row as input instead of each columns of a row
bool takes_row_as_input = 4;- Specified by:
getTakesRowAsInputin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder- Returns:
- The takesRowAsInput.
-
setTakesRowAsInput
Whether the UDF takes row as input instead of each columns of a row
bool takes_row_as_input = 4;- Parameters:
value- The takesRowAsInput to set.- Returns:
- This builder for chaining.
-
clearTakesRowAsInput
Whether the UDF takes row as input instead of each columns of a row
bool takes_row_as_input = 4;- Returns:
- This builder for chaining.
-
getIsPandasUdf
public boolean getIsPandasUdf()Whether it's pandas UDF
bool is_pandas_udf = 5;- Specified by:
getIsPandasUdfin interfaceFlinkFnApi.UserDefinedFunctionOrBuilder- Returns:
- The isPandasUdf.
-
setIsPandasUdf
Whether it's pandas UDF
bool is_pandas_udf = 5;- Parameters:
value- The isPandasUdf to set.- Returns:
- This builder for chaining.
-
clearIsPandasUdf
Whether it's pandas UDF
bool is_pandas_udf = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final FlinkFnApi.UserDefinedFunction.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
mergeUnknownFields
public final FlinkFnApi.UserDefinedFunction.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-