Search in sources :

Example 1 with OrderedAggregateFunctionOfDeferredType

use of org.jooq.OrderedAggregateFunctionOfDeferredType in project jOOQ by jOOQ.

the class DefaultParseContext method parseModeIf.

private final OrderedAggregateFunctionOfDeferredType parseModeIf() {
    OrderedAggregateFunctionOfDeferredType ordered;
    if (parseFunctionNameIf("MODE")) {
        parse('(');
        parse(')');
        ordered = mode();
    } else
        ordered = null;
    return ordered;
}
Also used : OrderedAggregateFunctionOfDeferredType(org.jooq.OrderedAggregateFunctionOfDeferredType)

Example 2 with OrderedAggregateFunctionOfDeferredType

use of org.jooq.OrderedAggregateFunctionOfDeferredType in project jOOQ by jOOQ.

the class DefaultParseContext method parseOrderedSetFunctionIf.

private final AggregateFilterStep<?> parseOrderedSetFunctionIf() {
    // TODO Listagg set function
    OrderedAggregateFunction<?> orderedN;
    OrderedAggregateFunctionOfDeferredType ordered1;
    boolean optionalWithinGroup = false;
    orderedN = parseHypotheticalSetFunctionIf();
    if (orderedN == null)
        orderedN = parseInverseDistributionFunctionIf();
    if (orderedN == null)
        optionalWithinGroup = (orderedN = parseListaggFunctionIf()) != null;
    if (orderedN != null)
        return orderedN.withinGroupOrderBy(parseWithinGroupN(optionalWithinGroup));
    ordered1 = parseModeIf();
    if (ordered1 != null)
        return ordered1.withinGroupOrderBy(parseWithinGroup1());
    return null;
}
Also used : OrderedAggregateFunctionOfDeferredType(org.jooq.OrderedAggregateFunctionOfDeferredType)

Aggregations

OrderedAggregateFunctionOfDeferredType (org.jooq.OrderedAggregateFunctionOfDeferredType)2