Class SimplifyFilterPredicate
- java.lang.Object
-
- io.trino.sql.planner.iterative.rule.SimplifyFilterPredicate
-
- All Implemented Interfaces:
Rule<FilterNode>
public class SimplifyFilterPredicate extends Object implements Rule<FilterNode>
Simplify conditional expressions in filter predicate.Replaces conditional expression with an expression evaluating to TRUE if and only if the original expression evaluates to TRUE. The rewritten expression might not be equivalent to the original expression.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface io.trino.sql.planner.iterative.Rule
Rule.Context, Rule.Result
-
-
Constructor Summary
Constructors Constructor Description SimplifyFilterPredicate(Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Rule.Resultapply(FilterNode node, Captures captures, Rule.Context context)Pattern<FilterNode>getPattern()Returns a pattern to which plan nodes this rule applies.
-
-
-
Constructor Detail
-
SimplifyFilterPredicate
public SimplifyFilterPredicate(Metadata metadata)
-
-
Method Detail
-
getPattern
public Pattern<FilterNode> getPattern()
Description copied from interface:RuleReturns a pattern to which plan nodes this rule applies.- Specified by:
getPatternin interfaceRule<FilterNode>
-
apply
public Rule.Result apply(FilterNode node, Captures captures, Rule.Context context)
- Specified by:
applyin interfaceRule<FilterNode>
-
-