Class RemoveRedundantSortBelowLimitWithTies

  • All Implemented Interfaces:
    Rule<LimitNode>

    public class RemoveRedundantSortBelowLimitWithTies
    extends Object
    implements Rule<LimitNode>
    This rule removes SortNode being a source of LimitNode with ties. LimitNode with ties performs sorting, so the SortNode is redundant.

    Transforms:

     - LimitNode
          count: n
          tiesResolvingScheme: (x)
          - SortNode: order by (y)
               - source
     
    into:
     - LimitNode
      *      count: n
      *      tiesResolvingScheme: (x)
      *      - source