public interface Aggregation
| 限定符和类型 | 方法和说明 |
|---|---|
static AvgAggregation |
avg(String name)
Create a new avg aggregation with the given name.
|
static CountAggregation |
count(String name)
Create a new ValueCount aggregation with the given name.
|
static FiltersAggregation |
filters(String name)
Create a new Filters aggregation with the given name.
|
static PercentileRanksAggregation |
percentileRanks(String name,
double... values)
Create a new PercentileRanks aggregation with the given name.
|
static PercentilesAggregation |
percentiles(String name)
Create a new percentiles aggregation with the given name.
|
static SumAggregation |
sum(String name)
Create a new Sum aggregation with the given name.
|
static TermsAggregation |
terms(String name)
Create a new Terms aggregation with the given name.
|
org.elasticsearch.search.aggregations.AggregationBuilder |
toAggBuilder()
builder
|
static TermsAggregation terms(String name)
name - namestatic FiltersAggregation filters(String name)
name - namestatic SumAggregation sum(String name)
name - namestatic CountAggregation count(String name)
name - namestatic AvgAggregation avg(String name)
name - namestatic PercentilesAggregation percentiles(String name)
name - namestatic PercentileRanksAggregation percentileRanks(String name, double... values)
name - namevalues - valuesorg.elasticsearch.search.aggregations.AggregationBuilder toAggBuilder()
Copyright © 2021. All rights reserved.