Search in sources :

Example 1 with StatsAggregationQuery

use of com.enonic.xp.query.aggregation.metric.StatsAggregationQuery in project xp by enonic.

the class BucketAggregationQueryTest method generateSubQueries.

private List<AggregationQuery> generateSubQueries() {
    final MaxAggregationQuery query1 = MaxAggregationQuery.create("query1").build();
    final MinAggregationQuery query2 = MinAggregationQuery.create("query2").build();
    final StatsAggregationQuery query3 = StatsAggregationQuery.create("query3").build();
    final ValueCountAggregationQuery query4 = ValueCountAggregationQuery.create("query4").build();
    return Arrays.asList(query1, query2, query3, query4);
}
Also used : MinAggregationQuery(com.enonic.xp.query.aggregation.metric.MinAggregationQuery) ValueCountAggregationQuery(com.enonic.xp.query.aggregation.metric.ValueCountAggregationQuery) MaxAggregationQuery(com.enonic.xp.query.aggregation.metric.MaxAggregationQuery) StatsAggregationQuery(com.enonic.xp.query.aggregation.metric.StatsAggregationQuery)

Aggregations

MaxAggregationQuery (com.enonic.xp.query.aggregation.metric.MaxAggregationQuery)1 MinAggregationQuery (com.enonic.xp.query.aggregation.metric.MinAggregationQuery)1 StatsAggregationQuery (com.enonic.xp.query.aggregation.metric.StatsAggregationQuery)1 ValueCountAggregationQuery (com.enonic.xp.query.aggregation.metric.ValueCountAggregationQuery)1