Package org.apache.flink.python.util
Enum ProtoUtils
- All Implemented Interfaces:
Serializable,Comparable<ProtoUtils>
Utilities used to construct protobuf objects or construct objects from protobuf objects.
-
Method Summary
Modifier and TypeMethodDescriptioncreateArrowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) static org.apache.beam.model.pipeline.v1.RunnerApi.CodercreateCoderProto(FlinkFnApi.CoderInfoDescriptor coderInfoDescriptor) createFlattenRowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) createOverWindowArrowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) createRawTypeCoderInfoDescriptorProto(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInformation, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage, ClassLoader userCodeClassLoader) createRowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) createUserDefinedAggregateFunctionProto(org.apache.flink.table.functions.python.PythonAggregateFunctionInfo pythonFunctionInfo, org.apache.flink.table.runtime.dataview.DataViewSpec[] dataViewSpecs) createUserDefinedDataStreamFunctionProto(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) createUserDefinedDataStreamFunctionProtos(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) createUserDefinedDataStreamStatefulFunctionProtos(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, org.apache.flink.api.common.typeinfo.TypeInformation<?> keyTypeInfo, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) createUserDefinedFunctionProto(org.apache.flink.table.functions.python.PythonFunctionInfo pythonFunctionInfo) createUserDefinedFunctionsProto(org.apache.flink.api.common.functions.RuntimeContext runtimeContext, org.apache.flink.table.functions.python.PythonFunctionInfo[] userDefinedFunctions, boolean isMetricEnabled, boolean isProfileEnabled) static org.apache.flink.api.common.state.StateTtlConfigparseStateTtlConfigFromProto(FlinkFnApi.StateDescriptor.StateTTLConfig stateTTLConfigProto) static ProtoUtilsReturns the enum constant of this type with the specified name.static ProtoUtils[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
createCoderProto
public static org.apache.beam.model.pipeline.v1.RunnerApi.Coder createCoderProto(FlinkFnApi.CoderInfoDescriptor coderInfoDescriptor) -
createRowTypeCoderInfoDescriptorProto
public static FlinkFnApi.CoderInfoDescriptor createRowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) -
createFlattenRowTypeCoderInfoDescriptorProto
public static FlinkFnApi.CoderInfoDescriptor createFlattenRowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) -
createArrowTypeCoderInfoDescriptorProto
public static FlinkFnApi.CoderInfoDescriptor createArrowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) -
createOverWindowArrowTypeCoderInfoDescriptorProto
public static FlinkFnApi.CoderInfoDescriptor createOverWindowArrowTypeCoderInfoDescriptorProto(org.apache.flink.table.types.logical.RowType rowType, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage) -
createUserDefinedFunctionsProto
public static FlinkFnApi.UserDefinedFunctions createUserDefinedFunctionsProto(org.apache.flink.api.common.functions.RuntimeContext runtimeContext, org.apache.flink.table.functions.python.PythonFunctionInfo[] userDefinedFunctions, boolean isMetricEnabled, boolean isProfileEnabled) -
createUserDefinedFunctionProto
public static FlinkFnApi.UserDefinedFunction createUserDefinedFunctionProto(org.apache.flink.table.functions.python.PythonFunctionInfo pythonFunctionInfo) -
createUserDefinedAggregateFunctionProto
public static FlinkFnApi.UserDefinedAggregateFunction createUserDefinedAggregateFunctionProto(org.apache.flink.table.functions.python.PythonAggregateFunctionInfo pythonFunctionInfo, org.apache.flink.table.runtime.dataview.DataViewSpec[] dataViewSpecs) -
createUserDefinedDataStreamFunctionProto
public static FlinkFnApi.UserDefinedDataStreamFunction createUserDefinedDataStreamFunctionProto(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) -
createReviseOutputDataStreamFunctionProto
-
createUserDefinedDataStreamFunctionProtos
public static List<FlinkFnApi.UserDefinedDataStreamFunction> createUserDefinedDataStreamFunctionProtos(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) -
createUserDefinedDataStreamStatefulFunctionProtos
public static List<FlinkFnApi.UserDefinedDataStreamFunction> createUserDefinedDataStreamStatefulFunctionProtos(DataStreamPythonFunctionInfo dataStreamPythonFunctionInfo, org.apache.flink.api.common.functions.RuntimeContext runtimeContext, Map<String, String> internalParameters, org.apache.flink.api.common.typeinfo.TypeInformation<?> keyTypeInfo, boolean inBatchExecutionMode, boolean isMetricEnabled, boolean isProfileEnabled, boolean hasSideOutput, int stateCacheSize, int mapStateReadCacheSize, int mapStateWriteCacheSize) -
createRawTypeCoderInfoDescriptorProto
public static FlinkFnApi.CoderInfoDescriptor createRawTypeCoderInfoDescriptorProto(org.apache.flink.api.common.typeinfo.TypeInformation<?> typeInformation, FlinkFnApi.CoderInfoDescriptor.Mode mode, boolean separatedWithEndMessage, ClassLoader userCodeClassLoader) -
parseStateTtlConfigFromProto
public static org.apache.flink.api.common.state.StateTtlConfig parseStateTtlConfigFromProto(FlinkFnApi.StateDescriptor.StateTTLConfig stateTTLConfigProto)
-