Class FilterWithElementWithComparisonRule


  • @API(EXPERIMENTAL)
    public class FilterWithElementWithComparisonRule
    extends PlannerRule<LogicalFilterExpression>
    A rewrite rule that turns a logical filter on the results of a full scan (without a sort) into an index scan on a compatibly ordered index.
     
          +----------------------------+                               +-------------------------------------+
          |                            |                               |                                     |
          |  LogicalFilterExpression   |                               |  IndexEntrySourceScanExpression     |
          |          element <>= val   |                               |                        scan ranges  |
          |                            |                               |                                     |
          +-------------+--------------+                               +-------------------------------------+
                        |                    +------------------>
                        |
                        |
         +--------------+----------------+
         |                               |
         |  FullUnorderedScanExpression  |
         |                               |
         +-------------------------------+
     
     
    Like the RecordQueryPlanner