LogicalPlanVisitor¶
LogicalPlanVisitor is an abstraction of visitors that can traverse a logical query plan to compute result of type T (e.g., Statistics or unique Expressions).
Type Constructor
LogicalPlanVisitor[T] is a Scala type constructor with the type parameter T.
Visitor Design Pattern
LogicalPlanVisitor uses Visitor Design Pattern for traversing a logical query plan.
Contract (Subset)¶
visitAggregate¶
Visits the given Aggregate logical operator
See:
Used when:
LogicalPlanVisitoris requested to visit a Aggregate logical operatorBasicStatsPlanVisitoris requested to visitDistinct
visitJoin¶
Visits the given Join logical operator
See:
Used when:
visitOffset¶
Visits the given Offset logical operator
See:
Used when:
Implementations¶
Visiting Logical Operator¶
visit is the entry point (a dispatcher) to hand over the task of computing the statistics of the given logical operator to the corresponding handler methods.
visit is used when:
LogicalPlanDistinctKeyslogical operator is requested for the distinct keysBasicStatsPlanVisitoris requested to fallbackLogicalPlanStatslogical operator is requested for the estimated statistics