Class SourcePlanNode

  • All Implemented Interfaces:
    DumpableNode<PlanNode>, org.apache.flink.util.Visitable<PlanNode>

    public class SourcePlanNode
    extends PlanNode
    Plan candidate node for data flow sources that have no input and no special strategies.
    • Constructor Detail

      • SourcePlanNode

        public SourcePlanNode​(DataSourceNode template,
                              String nodeName)
        Constructs a new source candidate node that uses NONE as its local strategy.
        Parameters:
        template - The template optimizer node that this candidate is created for.
    • Method Detail

      • getSerializer

        public org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> getSerializer()
        Gets the serializer from this PlanNode.
        Returns:
        The serializer.
      • setSerializer

        public void setSerializer​(org.apache.flink.api.common.typeutils.TypeSerializerFactory<?> serializer)
        Sets the serializer for this PlanNode.
        Parameters:
        serializer - The serializer to set.
      • accept

        public void accept​(org.apache.flink.util.Visitor<PlanNode> visitor)
      • hasDamOnPathDownTo

        public PlanNode.SourceAndDamReport hasDamOnPathDownTo​(PlanNode source)
        Description copied from class: PlanNode
        Checks whether this node has a dam on the way down to the given source node. This method returns either that (a) the source node is not found as a (transitive) child of this node, (b) the node is found, but no dam is on the path, or (c) the node is found and a dam is on the path.
        Specified by:
        hasDamOnPathDownTo in class PlanNode
        Parameters:
        source - The node on the path to which the dam is sought.
        Returns:
        The result whether the node is found and whether a dam is on the path.