Class TransformUncorrelatedInPredicateSubqueryToSemiJoin
- java.lang.Object
-
- io.prestosql.sql.planner.iterative.rule.TransformUncorrelatedInPredicateSubqueryToSemiJoin
-
public class TransformUncorrelatedInPredicateSubqueryToSemiJoin extends Object implements Rule<ApplyNode>
This optimizers looks for InPredicate expressions in ApplyNodes and replaces the nodes with SemiJoin nodes. Plan before optimizer:Filter(a IN b): Apply - correlation: [] // empty - input: some plan A producing symbol a - subquery: some plan B producing symbol b
Plan after optimizer:Filter(semijoinresult): SemiJoin - source: plan A - filteringSource: symbol a - sourceJoinSymbol: plan B - filteringSourceJoinSymbol: symbol b - semiJoinOutput: semijoinresult
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.prestosql.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description TransformUncorrelatedInPredicateSubqueryToSemiJoin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Result
apply(ApplyNode applyNode, Captures captures, Rule.Context context)
Pattern<ApplyNode>
getPattern()
Returns a pattern to which plan nodes this rule applies.
-
-
-
Method Detail
-
getPattern
public Pattern<ApplyNode> getPattern()
Description copied from interface:Rule
Returns a pattern to which plan nodes this rule applies.- Specified by:
getPattern
in interfaceRule<ApplyNode>
-
apply
public Rule.Result apply(ApplyNode applyNode, Captures captures, Rule.Context context)
-
-