Class PushElementWithComparisonIntoExistingScanRule


  • @API(EXPERIMENTAL)
    public class PushElementWithComparisonIntoExistingScanRule
    extends PlannerRule<LogicalFilterExpression>
    A simple rule that looks for a ComponentWithComparison predicate and a compatibly ordered index scan comparison down to the index scan.
     
           +-----------------------------+               +----------------------------------+
           |                             |               |                                  |
           |  LogicalFilterExpression    |     +------>  |  IndexEntrySourceScanExpression  |
           |                elementPred  |               |  elementComparison ∪ comparisons |
           |                             |               |                                  |
           +-------------+---------------+               +----------------------------------+
                         |
                         |
                         |
         +---------------+------------------+
         |                                  |
         |  IndexEntrySourceScanExpression  |
         |                     comparisons  |
         |                                  |
         +----------------------------------+