private static OrderByPlanNode buildOrderByPlanNode(List<ParsedColInfo> cols) {
        OrderByPlanNode n = new OrderByPlanNode();

        for (ParsedColInfo col : cols) {
            n.addSortExpression(col.m_expression,
                    col.m_ascending ? SortDirectionType.ASC
                                  : SortDirectionType.DESC);
        }

        return n;
    }
private static OrderByPlanNode buildOrderByPlanNode ( List < ParsedColInfo > cols ) { OrderByPlanNode n = new OrderByPlanNode ( ) ; for ( ParsedColInfo col : cols ) { n . addSortExpression ( col . m_expression , col . m_ascending ? SortDirectionType . ASC : SortDirectionType . DESC ) ; } return n ; }
Given a list of ORDER BY columns, construct and return an OrderByPlanNode.