use of io.shardingjdbc.core.constant.AggregationType in project sharding-jdbc by shardingjdbc.
the class SelectListClauseParser method parseAggregationSelectItem.
private SelectItem parseAggregationSelectItem(final SelectStatement selectStatement) {
AggregationType aggregationType = AggregationType.valueOf(lexerEngine.getCurrentToken().getLiterals().toUpperCase());
lexerEngine.nextToken();
return new AggregationSelectItem(aggregationType, lexerEngine.skipParentheses(selectStatement), aliasExpressionParser.parseSelectItemAlias());
}
Aggregations