use of org.apache.phoenix.expression.aggregator.MinAggregator in project phoenix by apache.
the class MinAggregateFunction method newServerAggregator.
@Override
public Aggregator newServerAggregator(Configuration conf) {
Expression child = getAggregatorExpression();
final PDataType type = child.getDataType();
final Integer maxLength = child.getMaxLength();
return new MinAggregator(child.getSortOrder()) {
@Override
public PDataType getDataType() {
return type;
}
@Override
public Integer getMaxLength() {
return maxLength;
}
};
}
Aggregations