Class BatchExecExchange

java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.ExecNodeBase<org.apache.flink.table.data.RowData>
org.apache.flink.table.planner.plan.nodes.exec.common.CommonExecExchange
org.apache.flink.table.planner.plan.nodes.exec.batch.BatchExecExchange
All Implemented Interfaces:
BatchExecNode<org.apache.flink.table.data.RowData>, ExecNode<org.apache.flink.table.data.RowData>, ExecNodeTranslator<org.apache.flink.table.data.RowData>, FusionCodegenExecNode, SingleTransformationTranslator<org.apache.flink.table.data.RowData>

@ExecNodeMetadata(name="batch-exec-exchange", version=1, producedTransformations="exchange", minPlanVersion=v2_0, minStateVersion=v2_0) public class BatchExecExchange extends CommonExecExchange implements BatchExecNode<org.apache.flink.table.data.RowData>
This ExecNode represents a change of partitioning of the input elements for batch.
  • Field Details

  • Constructor Details

    • BatchExecExchange

      public BatchExecExchange(org.apache.flink.configuration.ReadableConfig tableConfig, InputProperty inputProperty, org.apache.flink.table.types.logical.RowType outputType, String description)
    • BatchExecExchange

      public BatchExecExchange(int id, ExecNodeContext context, org.apache.flink.configuration.ReadableConfig persistedConfig, List<InputProperty> inputProperties, org.apache.flink.table.types.logical.RowType outputType, String description, org.apache.flink.streaming.api.transformations.StreamExchangeMode requiredExchangeMode)
  • Method Details

    • setRequiredExchangeMode

      public void setRequiredExchangeMode(@Nullable org.apache.flink.streaming.api.transformations.StreamExchangeMode requiredExchangeMode)
    • getDescription

      public String getDescription()
      Description copied from interface: ExecNode
      Returns a string which describes this node.
      Specified by:
      getDescription in interface ExecNode<org.apache.flink.table.data.RowData>
      Overrides:
      getDescription in class ExecNodeBase<org.apache.flink.table.data.RowData>
    • translateToPlanInternal

      protected org.apache.flink.api.dag.Transformation<org.apache.flink.table.data.RowData> translateToPlanInternal(PlannerBase planner, ExecNodeConfig config)
      Description copied from class: ExecNodeBase
      Internal method, translates this node into a Flink operator.
      Specified by:
      translateToPlanInternal in class ExecNodeBase<org.apache.flink.table.data.RowData>
      Parameters:
      planner - The planner.
      config - per-ExecNode configuration that contains the merged configuration from various layers which all the nodes implementing this method should use, instead of retrieving configuration from the planner. For more details check ExecNodeConfig.
    • getRequiredExchangeMode

      @VisibleForTesting public Optional<org.apache.flink.streaming.api.transformations.StreamExchangeMode> getRequiredExchangeMode()