Class ExecNodeUtil
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.utils.ExecNodeUtil
An Utility class that helps translating
ExecNode to Transformation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation.static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I, O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes.static <I> org.apache.flink.api.dag.Transformation<I>createPartitionTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<I> streamPartitioner) Create aPartitionTransformation.static <I1,I2, O> org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1, I2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aTwoInputTransformationwith memoryBytes.static <I1,I2, O> org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1, I2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes.static <I1,I2, O> org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1, I2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) static <IN1,IN2, O>
org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,IN2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, String desc, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism) Create aTwoInputTransformationwith memoryBytes.static <IN1,IN2, O>
org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,IN2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, String desc, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes.static <IN1,IN2, O>
org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,IN2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aTwoInputTransformationwith memoryBytes.static <IN1,IN2, O>
org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,IN2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes.static <IN1,IN2, O>
org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,IN2, O> createTwoInputTransformation(org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) static StringgetMultipleInputDescription(ExecNode<?> rootNode, List<ExecNode<?>> inputNodes, List<InputProperty> inputProperties) Return description for multiple input node.static voidmakeLegacySourceTransformationsBounded(org.apache.flink.api.dag.Transformation<?> transformation) The planner might have more information than expressed in legacy source transformations.static <T> voidsetManagedMemoryWeight(org.apache.flink.api.dag.Transformation<T> transformation, long memoryBytes) Sets {Transformation#declareManagedMemoryUseCaseAtOperatorScope(ManagedMemoryUseCase, int)} using the given bytes forManagedMemoryUseCase.OPERATOR.
-
Constructor Details
-
ExecNodeUtil
public ExecNodeUtil()
-
-
Method Details
-
setManagedMemoryWeight
public static <T> void setManagedMemoryWeight(org.apache.flink.api.dag.Transformation<T> transformation, long memoryBytes) Sets {Transformation#declareManagedMemoryUseCaseAtOperatorScope(ManagedMemoryUseCase, int)} using the given bytes forManagedMemoryUseCase.OPERATOR. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperator<O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aOneInputTransformation. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes. -
createOneInputTransformation
public static <I,O> org.apache.flink.streaming.api.transformations.OneInputTransformation<I,O> createOneInputTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aOneInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <IN1,IN2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,O> IN2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, boolean parallelismConfigured) Create aTwoInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <IN1,IN2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,O> IN2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, String desc, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism) Create aTwoInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <IN1,IN2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,O> IN2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <IN1,IN2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,O> IN2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) -
createTwoInputTransformation
public static <IN1,IN2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<IN1,O> IN2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<IN1> input1, org.apache.flink.api.dag.Transformation<IN2> input2, String name, String desc, org.apache.flink.streaming.api.operators.TwoInputStreamOperator<IN1, IN2, O> operator, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <I1,I2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1,O> I2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes) Create aTwoInputTransformationwith memoryBytes. -
createTwoInputTransformation
public static <I1,I2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1,O> I2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, TransformationMetadata transformationMeta, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) -
createTwoInputTransformation
public static <I1,I2, org.apache.flink.streaming.api.transformations.TwoInputTransformation<I1,O> I2, createTwoInputTransformationO> (org.apache.flink.api.dag.Transformation<I1> input1, org.apache.flink.api.dag.Transformation<I2> input2, String name, String desc, org.apache.flink.streaming.api.operators.StreamOperatorFactory<O> operatorFactory, org.apache.flink.api.common.typeinfo.TypeInformation<O> outputType, int parallelism, long memoryBytes, boolean parallelismConfigured) Create aTwoInputTransformationwith memoryBytes. -
getMultipleInputDescription
public static String getMultipleInputDescription(ExecNode<?> rootNode, List<ExecNode<?>> inputNodes, List<InputProperty> inputProperties) Return description for multiple input node. -
makeLegacySourceTransformationsBounded
public static void makeLegacySourceTransformationsBounded(org.apache.flink.api.dag.Transformation<?> transformation) The planner might have more information than expressed in legacy source transformations. This enforces planner information about boundedness to the affected transformations. -
createPartitionTransformation
public static <I> org.apache.flink.api.dag.Transformation<I> createPartitionTransformation(org.apache.flink.api.dag.Transformation<I> input, TransformationMetadata transformationMeta, org.apache.flink.streaming.runtime.partitioner.StreamPartitioner<I> streamPartitioner) Create aPartitionTransformation.
-