Class ExecEdge
java.lang.Object
org.apache.flink.table.planner.plan.nodes.exec.ExecEdge
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder of theExecEdge.static classRecords are shuffled by hash when passing through this edge.static classTheExecEdge.Shuffledefines how to exchange the records betweenExecNodes. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ExecEdge.ShuffleAny type of shuffle is OK when passing through this edge.static final ExecEdge.ShuffleFull records are provided for each parallelism of the target node.static final ExecEdge.ShuffleRecords are shuffled in same parallelism (function call).static final ExecEdge.ShuffleThe parallelism of the target node must be 1. -
Constructor Summary
ConstructorsConstructorDescriptionExecEdge(ExecNode<?> source, ExecNode<?> target, ExecEdge.Shuffle shuffle, org.apache.flink.streaming.api.transformations.StreamExchangeMode exchangeMode) -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecEdge.Builderbuilder()org.apache.flink.streaming.api.transformations.StreamExchangeModeorg.apache.flink.table.types.logical.LogicalTypeReturns the outputLogicalTypeof the data passing this edge.ExecNode<?>ExecNode<?>static ExecEdge.ShufflehashShuffle(int[] keys) Return hashExecEdge.Shuffle.toString()translateToFusionCodegenSpec(org.apache.flink.table.delegation.Planner planner, CodeGeneratorContext parentCtx) Translates this edge into operator fusion codegen spec generator.org.apache.flink.api.dag.Transformation<?>translateToPlan(org.apache.flink.table.delegation.Planner planner) Translates this edge into a Flink operator.
-
Field Details
-
ANY_SHUFFLE
Any type of shuffle is OK when passing through this edge. -
BROADCAST_SHUFFLE
Full records are provided for each parallelism of the target node. -
SINGLETON_SHUFFLE
The parallelism of the target node must be 1. -
FORWARD_SHUFFLE
Records are shuffled in same parallelism (function call).
-
-
Constructor Details
-
ExecEdge
public ExecEdge(ExecNode<?> source, ExecNode<?> target, ExecEdge.Shuffle shuffle, org.apache.flink.streaming.api.transformations.StreamExchangeMode exchangeMode)
-
-
Method Details
-
getSource
-
getTarget
-
getShuffle
-
getExchangeMode
public org.apache.flink.streaming.api.transformations.StreamExchangeMode getExchangeMode() -
getOutputType
public org.apache.flink.table.types.logical.LogicalType getOutputType()Returns the outputLogicalTypeof the data passing this edge. -
toString
-
builder
-
hashShuffle
Return hashExecEdge.Shuffle.- Parameters:
keys- hash keys
-
translateToPlan
public org.apache.flink.api.dag.Transformation<?> translateToPlan(org.apache.flink.table.delegation.Planner planner) Translates this edge into a Flink operator.- Parameters:
planner- ThePlannerof the translated Table.
-
translateToFusionCodegenSpec
public OpFusionCodegenSpecGenerator translateToFusionCodegenSpec(org.apache.flink.table.delegation.Planner planner, CodeGeneratorContext parentCtx) Translates this edge into operator fusion codegen spec generator.- Parameters:
planner- ThePlannerof the translated Table.parentCtx- Parent CodeGeneratorContext.
-