Class SortExchange

All Implemented Interfaces:
Cloneable, RelOptNode, RelNode
Direct Known Subclasses:

public abstract class SortExchange
extends Exchange
Relational expression that performs Exchange and Sort simultaneously.

Whereas a Sort produces output with a particular RelCollation and an Exchange produces output with a particular RelDistribution, the output of a SortExchange has both the required collation and distribution.

Several implementations of SortExchange are possible; the purpose of this base class allows rules to be written that apply to all of those implementations.