public AggregationAccessor getAccessor() {
throw new IllegalStateException("Not an access aggregation function");
}
public AggregationMethod make(MethodResolutionService methodResolutionService, int agentInstanceId, int groupId, int aggregationId) {
AggregationMethod method = methodResolutionService.makeAvgAggregator(agentInstanceId, groupId, aggregationId, childType, hasFilter);
if (!isDistinct) {
return method;
}
return methodResolutionService.makeDistinctAggregator(agentInstanceId, groupId, aggregationId, method, childType, hasFilter);
}