use of org.elasticsearch.search.aggregations.metrics.stats.extended.ExtendedStatsAggregationBuilder in project graylog2-server by Graylog2.
the class ESVarianceHandler method doCreateAggregation.
@Nonnull
@Override
public Optional<AggregationBuilder> doCreateAggregation(String name, Pivot pivot, Variance varianceSpec, ESPivot searchTypeHandler, ESGeneratedQueryContext queryContext) {
final ExtendedStatsAggregationBuilder variance = AggregationBuilders.extendedStats(name).field(varianceSpec.field());
record(queryContext, pivot, varianceSpec, name, ExtendedStatsAggregation.class);
return Optional.of(variance);
}
Aggregations