java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.utils.ExecNodeUtil

public class ExecNodeUtil extends Object
An Utility class that helps translating ExecNode to Transformation.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 a OneInputTransformation.
    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 a OneInputTransformation.
    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 a OneInputTransformation with 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 a OneInputTransformation.
    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 a OneInputTransformation with 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 a OneInputTransformation.
    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 a OneInputTransformation with 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 a PartitionTransformation.
    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 a TwoInputTransformation with 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 a TwoInputTransformation with 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 a TwoInputTransformation with 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 a TwoInputTransformation with 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 a TwoInputTransformation with 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 a TwoInputTransformation with 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 String
    getMultipleInputDescription(ExecNode<?> rootNode, List<ExecNode<?>> inputNodes, List<InputProperty> inputProperties)
    Return description for multiple input node.
    static void
    makeLegacySourceTransformationsBounded(org.apache.flink.api.dag.Transformation<?> transformation)
    The planner might have more information than expressed in legacy source transformations.
    static <T> void
    setManagedMemoryWeight(org.apache.flink.api.dag.Transformation<T> transformation, long memoryBytes)
    Sets {Transformation#declareManagedMemoryUseCaseAtOperatorScope(ManagedMemoryUseCase, int)} using the given bytes for ManagedMemoryUseCase.OPERATOR.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 for ManagedMemoryUseCase.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 a OneInputTransformation.
    • 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 a OneInputTransformation.
    • 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 a OneInputTransformation with 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 a OneInputTransformation.
    • 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 a OneInputTransformation.
    • 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 a OneInputTransformation with 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 a OneInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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)
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with memoryBytes.
    • createTwoInputTransformation

      public 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)
    • createTwoInputTransformation

      public 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 a TwoInputTransformation with 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 a PartitionTransformation.