Class SortJoinCopyRule

  • public class SortJoinCopyRule
    extends RelOptRule
    Planner rule that copies a Sort past a Join without its limit and offset. The original Sort is preserved but can be potentially removed by SortRemoveRule if redundant.

    Some examples where SortJoinCopyRule can be useful: allowing a Sort to be incorporated in an index scan; facilitating the use of operators requiring sorted inputs; and allowing the sort to be performed on a possibly smaller result.