Class MergeLimitOverProjectWithSort

  • All Implemented Interfaces:
    Rule<LimitNode>

    public class MergeLimitOverProjectWithSort
    extends Object
    implements Rule<LimitNode>
    Transforms:
     - Limit (limit = x)
        - Project (identity, narrowing)
           - Sort (order by a, b)
     
    Into:
     - Project (identity, narrowing)
        - TopN (limit = x, order by a, b)
     
    Applies to LimitNode without ties only.