Package org.apache.flink.fnexecution.v1
Class FlinkFnApi.UserDefinedFunction.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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 typeorg.apache.flink.fn_execution.v1.UserDefinedFunction
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FlinkFnApi.UserDefinedFunction.BuilderaddAllInputs(Iterable<? extends FlinkFnApi.Input> values)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuilderaddInputs(int index, FlinkFnApi.Input value)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuilderaddInputs(int index, FlinkFnApi.Input.Builder builderForValue)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuilderaddInputs(FlinkFnApi.Input value)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuilderaddInputs(FlinkFnApi.Input.Builder builderForValue)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.Input.BuilderaddInputsBuilder()The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.Input.BuilderaddInputsBuilder(int index)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunctionbuild()FlinkFnApi.UserDefinedFunctionbuildPartial()FlinkFnApi.UserDefinedFunction.Builderclear()FlinkFnApi.UserDefinedFunction.BuilderclearInputs()The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuilderclearIsPandasUdf()Whether it's pandas UDFFlinkFnApi.UserDefinedFunction.BuilderclearPayload()The serialized representation of the user-defined functionFlinkFnApi.UserDefinedFunction.BuilderclearTakesRowAsInput()Whether the UDF takes row as input instead of each columns of a rowFlinkFnApi.UserDefinedFunction.BuilderclearWindowIndex()The index of the over window used in pandas batch over window aggregationFlinkFnApi.UserDefinedFunctiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()FlinkFnApi.InputgetInputs(int index)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.Input.BuildergetInputsBuilder(int index)The input arguments of the user-defined function, it could be one of the following: 1.List<FlinkFnApi.Input.Builder>getInputsBuilderList()The input arguments of the user-defined function, it could be one of the following: 1.intgetInputsCount()The input arguments of the user-defined function, it could be one of the following: 1.List<FlinkFnApi.Input>getInputsList()The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.InputOrBuildergetInputsOrBuilder(int index)The input arguments of the user-defined function, it could be one of the following: 1.List<? extends FlinkFnApi.InputOrBuilder>getInputsOrBuilderList()The input arguments of the user-defined function, it could be one of the following: 1.booleangetIsPandasUdf()Whether it's pandas UDFcom.google.protobuf.ByteStringgetPayload()The serialized representation of the user-defined functionbooleangetTakesRowAsInput()Whether the UDF takes row as input instead of each columns of a rowintgetWindowIndex()The index of the over window used in pandas batch over window aggregationprotected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()FlinkFnApi.UserDefinedFunction.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)FlinkFnApi.UserDefinedFunction.BuildermergeFrom(com.google.protobuf.Message other)FlinkFnApi.UserDefinedFunction.BuildermergeFrom(FlinkFnApi.UserDefinedFunction other)FlinkFnApi.UserDefinedFunction.BuilderremoveInputs(int index)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuildersetInputs(int index, FlinkFnApi.Input value)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuildersetInputs(int index, FlinkFnApi.Input.Builder builderForValue)The input arguments of the user-defined function, it could be one of the following: 1.FlinkFnApi.UserDefinedFunction.BuildersetIsPandasUdf(boolean value)Whether it's pandas UDFFlinkFnApi.UserDefinedFunction.BuildersetPayload(com.google.protobuf.ByteString value)The serialized representation of the user-defined functionFlinkFnApi.UserDefinedFunction.BuildersetTakesRowAsInput(boolean value)Whether the UDF takes row as input instead of each columns of a rowFlinkFnApi.UserDefinedFunction.BuildersetWindowIndex(int value)The index of the over window used in pandas batch over window aggregation-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
clear
public 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.GeneratedMessage.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.GeneratedMessage.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
getDefaultInstanceForType
public FlinkFnApi.UserDefinedFunction getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public FlinkFnApi.UserDefinedFunction build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public FlinkFnApi.UserDefinedFunction buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public FlinkFnApi.UserDefinedFunction.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<FlinkFnApi.UserDefinedFunction.Builder>
-
mergeFrom
public FlinkFnApi.UserDefinedFunction.Builder mergeFrom(FlinkFnApi.UserDefinedFunction other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
public FlinkFnApi.UserDefinedFunction.Builder setPayload(com.google.protobuf.ByteString value)
The serialized representation of the user-defined function
bytes payload = 1;- Parameters:
value- The payload to set.- Returns:
- This builder for chaining.
-
clearPayload
public FlinkFnApi.UserDefinedFunction.Builder clearPayload()
The serialized representation of the user-defined function
bytes payload = 1;- Returns:
- This builder for chaining.
-
getInputsList
public List<FlinkFnApi.Input> 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
public FlinkFnApi.Input getInputs(int index)
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
public FlinkFnApi.UserDefinedFunction.Builder setInputs(int index, FlinkFnApi.Input value)
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
public FlinkFnApi.UserDefinedFunction.Builder addInputs(FlinkFnApi.Input value)
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 value)
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(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
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
public FlinkFnApi.UserDefinedFunction.Builder 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
public FlinkFnApi.UserDefinedFunction.Builder removeInputs(int index)
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
public FlinkFnApi.Input.Builder getInputsBuilder(int index)
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
public FlinkFnApi.InputOrBuilder getInputsOrBuilder(int index)
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
public List<? extends FlinkFnApi.InputOrBuilder> 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
public FlinkFnApi.Input.Builder 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
public FlinkFnApi.Input.Builder addInputsBuilder(int index)
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
public List<FlinkFnApi.Input.Builder> 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
public FlinkFnApi.UserDefinedFunction.Builder setWindowIndex(int value)
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
public FlinkFnApi.UserDefinedFunction.Builder 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
public FlinkFnApi.UserDefinedFunction.Builder setTakesRowAsInput(boolean value)
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
public FlinkFnApi.UserDefinedFunction.Builder 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
public FlinkFnApi.UserDefinedFunction.Builder setIsPandasUdf(boolean value)
Whether it's pandas UDF
bool is_pandas_udf = 5;- Parameters:
value- The isPandasUdf to set.- Returns:
- This builder for chaining.
-
clearIsPandasUdf
public FlinkFnApi.UserDefinedFunction.Builder clearIsPandasUdf()
Whether it's pandas UDF
bool is_pandas_udf = 5;- Returns:
- This builder for chaining.
-
-