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;
}
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;
}
Aggregations