Search in sources :

Example 1 with AggregationType

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());
}
Also used : AggregationSelectItem(io.shardingjdbc.core.parsing.parser.context.selectitem.AggregationSelectItem) AggregationType(io.shardingjdbc.core.constant.AggregationType)

Aggregations

AggregationType (io.shardingjdbc.core.constant.AggregationType)1 AggregationSelectItem (io.shardingjdbc.core.parsing.parser.context.selectitem.AggregationSelectItem)1