Search in sources :

Example 1 with SortNode

use of org.apache.ignite.internal.sql.engine.exec.rel.SortNode in project ignite-3 by apache.

the class LogicalRelImplementor method visit.

/**
 * {@inheritDoc}
 */
@Override
public Node<RowT> visit(IgniteSort rel) {
    RelCollation collation = rel.getCollation();
    SortNode<RowT> node = new SortNode<>(ctx, rel.getRowType(), expressionFactory.comparator(collation));
    Node<RowT> input = visit(rel.getInput());
    node.register(input);
    return node;
}
Also used : RelCollation(org.apache.calcite.rel.RelCollation) SortNode(org.apache.ignite.internal.sql.engine.exec.rel.SortNode)

Aggregations

RelCollation (org.apache.calcite.rel.RelCollation)1 SortNode (org.apache.ignite.internal.sql.engine.exec.rel.SortNode)1