Search in sources :

Example 1 with SortSpecification

use of org.teiid.language.SortSpecification in project teiid by teiid.

the class TestSetQueryImpl method example3.

public static SetQuery example3() throws Exception {
    SetQuery union = example2();
    List<SortSpecification> items = new ArrayList<SortSpecification>();
    // $NON-NLS-1$
    items.add(new SortSpecification(Ordering.ASC, new ColumnReference(null, "nugent", null, DataTypeManager.DefaultDataClasses.STRING)));
    OrderBy orderBy = new OrderBy(items);
    union.setOrderBy(orderBy);
    return union;
}
Also used : OrderBy(org.teiid.language.OrderBy) SetQuery(org.teiid.language.SetQuery) SortSpecification(org.teiid.language.SortSpecification) ArrayList(java.util.ArrayList) ColumnReference(org.teiid.language.ColumnReference)

Aggregations

ArrayList (java.util.ArrayList)1 ColumnReference (org.teiid.language.ColumnReference)1 OrderBy (org.teiid.language.OrderBy)1 SetQuery (org.teiid.language.SetQuery)1 SortSpecification (org.teiid.language.SortSpecification)1