public class AggregationBuilders
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AvgAggregatorBuilder |
avg(java.lang.String name)
Create a new
Avg aggregation with the given name. |
static CardinalityAggregatorBuilder |
cardinality(java.lang.String name)
Create a new
Cardinality aggregation with the given name. |
static ChildrenAggregatorBuilder |
children(java.lang.String name,
java.lang.String childType)
Create a new
Children aggregation with the given name. |
static ValueCountAggregatorBuilder |
count(java.lang.String name)
Create a new
ValueCount aggregation with the given name. |
static DateHistogramAggregatorBuilder |
dateHistogram(java.lang.String name)
Create a new
DateHistogramAggregatorBuilder aggregation with the given
name. |
static DateRangeAggregatorBuilder |
dateRange(java.lang.String name)
Create a new
DateRangeAggregatorBuilder aggregation with the
given name. |
static DiversifiedAggregatorBuilder |
diversifiedSampler(java.lang.String name)
Create a new
Sampler aggregation with the given name. |
static ExtendedStatsAggregatorBuilder |
extendedStats(java.lang.String name)
Create a new
ExtendedStats aggregation with the given name. |
static FilterAggregatorBuilder |
filter(java.lang.String name,
QueryBuilder<?> filter)
Create a new
Filter aggregation with the given name. |
static FiltersAggregatorBuilder |
filters(java.lang.String name,
FiltersAggregator.KeyedFilter... filters)
Create a new
Filters aggregation with the given name. |
static FiltersAggregatorBuilder |
filters(java.lang.String name,
QueryBuilder<?>... filters)
Create a new
Filters aggregation with the given name. |
static GeoBoundsAggregatorBuilder |
geoBounds(java.lang.String name)
Create a new
GeoBounds aggregation with the given name. |
static GeoCentroidAggregatorBuilder |
geoCentroid(java.lang.String name)
Create a new
GeoCentroid aggregation with the given name. |
static GeoDistanceAggregatorBuilder |
geoDistance(java.lang.String name,
GeoPoint origin)
Create a new
GeoDistance aggregation with the given name. |
static GeoGridAggregatorBuilder |
geohashGrid(java.lang.String name)
Create a new
GeoHashGrid aggregation with the given name. |
static GlobalAggregatorBuilder |
global(java.lang.String name)
Create a new
Global aggregation with the given name. |
static HistogramAggregatorBuilder |
histogram(java.lang.String name)
Create a new
Histogram aggregation with the given name. |
static IPv4RangeAggregatorBuilder |
ipRange(java.lang.String name)
Create a new
IPv4RangeAggregatorBuilder aggregation with the
given name. |
static MaxAggregatorBuilder |
max(java.lang.String name)
Create a new
Max aggregation with the given name. |
static MinAggregatorBuilder |
min(java.lang.String name)
Create a new
Min aggregation with the given name. |
static MissingAggregatorBuilder |
missing(java.lang.String name)
Create a new
Missing aggregation with the given name. |
static NestedAggregatorBuilder |
nested(java.lang.String name,
java.lang.String path)
Create a new
Nested aggregation with the given name. |
static PercentileRanksAggregatorBuilder |
percentileRanks(java.lang.String name)
Create a new
PercentileRanks aggregation with the given name. |
static PercentilesAggregatorBuilder |
percentiles(java.lang.String name)
Create a new
Percentiles aggregation with the given name. |
static RangeAggregatorBuilder |
range(java.lang.String name)
Create a new
Range aggregation with the given name. |
static ReverseNestedAggregatorBuilder |
reverseNested(java.lang.String name)
Create a new
ReverseNested aggregation with the given name. |
static SamplerAggregatorBuilder |
sampler(java.lang.String name)
Create a new
Sampler aggregation with the given name. |
static ScriptedMetricAggregatorBuilder |
scriptedMetric(java.lang.String name)
Create a new
ScriptedMetric aggregation with the given name. |
static SignificantTermsAggregatorBuilder |
significantTerms(java.lang.String name)
Create a new
SignificantTerms aggregation with the given name. |
static StatsAggregatorBuilder |
stats(java.lang.String name)
Create a new
Stats aggregation with the given name. |
static SumAggregatorBuilder |
sum(java.lang.String name)
Create a new
Sum aggregation with the given name. |
static TermsAggregatorBuilder |
terms(java.lang.String name)
Create a new
Terms aggregation with the given name. |
static TopHitsAggregatorBuilder |
topHits(java.lang.String name)
Create a new
TopHits aggregation with the given name. |
public static ValueCountAggregatorBuilder count(java.lang.String name)
ValueCount
aggregation with the given name.public static AvgAggregatorBuilder avg(java.lang.String name)
Avg
aggregation with the given name.public static MaxAggregatorBuilder max(java.lang.String name)
Max
aggregation with the given name.public static MinAggregatorBuilder min(java.lang.String name)
Min
aggregation with the given name.public static SumAggregatorBuilder sum(java.lang.String name)
Sum
aggregation with the given name.public static StatsAggregatorBuilder stats(java.lang.String name)
Stats
aggregation with the given name.public static ExtendedStatsAggregatorBuilder extendedStats(java.lang.String name)
ExtendedStats
aggregation with the given name.public static FilterAggregatorBuilder filter(java.lang.String name, QueryBuilder<?> filter)
Filter
aggregation with the given name.public static FiltersAggregatorBuilder filters(java.lang.String name, FiltersAggregator.KeyedFilter... filters)
Filters
aggregation with the given name.public static FiltersAggregatorBuilder filters(java.lang.String name, QueryBuilder<?>... filters)
Filters
aggregation with the given name.public static SamplerAggregatorBuilder sampler(java.lang.String name)
Sampler
aggregation with the given name.public static DiversifiedAggregatorBuilder diversifiedSampler(java.lang.String name)
Sampler
aggregation with the given name.public static GlobalAggregatorBuilder global(java.lang.String name)
Global
aggregation with the given name.public static MissingAggregatorBuilder missing(java.lang.String name)
Missing
aggregation with the given name.public static NestedAggregatorBuilder nested(java.lang.String name, java.lang.String path)
Nested
aggregation with the given name.public static ReverseNestedAggregatorBuilder reverseNested(java.lang.String name)
ReverseNested
aggregation with the given name.public static ChildrenAggregatorBuilder children(java.lang.String name, java.lang.String childType)
Children
aggregation with the given name.public static GeoDistanceAggregatorBuilder geoDistance(java.lang.String name, GeoPoint origin)
GeoDistance
aggregation with the given name.public static HistogramAggregatorBuilder histogram(java.lang.String name)
Histogram
aggregation with the given name.public static GeoGridAggregatorBuilder geohashGrid(java.lang.String name)
GeoHashGrid
aggregation with the given name.public static SignificantTermsAggregatorBuilder significantTerms(java.lang.String name)
SignificantTerms
aggregation with the given name.public static DateHistogramAggregatorBuilder dateHistogram(java.lang.String name)
DateHistogramAggregatorBuilder
aggregation with the given
name.public static RangeAggregatorBuilder range(java.lang.String name)
Range
aggregation with the given name.public static DateRangeAggregatorBuilder dateRange(java.lang.String name)
DateRangeAggregatorBuilder
aggregation with the
given name.public static IPv4RangeAggregatorBuilder ipRange(java.lang.String name)
IPv4RangeAggregatorBuilder
aggregation with the
given name.public static TermsAggregatorBuilder terms(java.lang.String name)
Terms
aggregation with the given name.public static PercentilesAggregatorBuilder percentiles(java.lang.String name)
Percentiles
aggregation with the given name.public static PercentileRanksAggregatorBuilder percentileRanks(java.lang.String name)
PercentileRanks
aggregation with the given name.public static CardinalityAggregatorBuilder cardinality(java.lang.String name)
Cardinality
aggregation with the given name.public static TopHitsAggregatorBuilder topHits(java.lang.String name)
TopHits
aggregation with the given name.public static GeoBoundsAggregatorBuilder geoBounds(java.lang.String name)
GeoBounds
aggregation with the given name.public static GeoCentroidAggregatorBuilder geoCentroid(java.lang.String name)
GeoCentroid
aggregation with the given name.public static ScriptedMetricAggregatorBuilder scriptedMetric(java.lang.String name)
ScriptedMetric
aggregation with the given name.