public class AggregationBuilders
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static AdjacencyMatrixAggregationBuilder |
adjacencyMatrix(java.lang.String name,
java.util.Map<java.lang.String,QueryBuilder> filters)
Create a new
AdjacencyMatrix aggregation with the given name. |
static AdjacencyMatrixAggregationBuilder |
adjacencyMatrix(java.lang.String name,
java.lang.String separator,
java.util.Map<java.lang.String,QueryBuilder> filters)
Create a new
AdjacencyMatrix aggregation with the given name and separator |
static AvgAggregationBuilder |
avg(java.lang.String name)
Create a new
Avg aggregation with the given name. |
static CardinalityAggregationBuilder |
cardinality(java.lang.String name)
Create a new
Cardinality aggregation with the given name. |
static ValueCountAggregationBuilder |
count(java.lang.String name)
Create a new
ValueCount aggregation with the given name. |
static DateHistogramAggregationBuilder |
dateHistogram(java.lang.String name)
Create a new
DateHistogramAggregationBuilder aggregation with the given
name. |
static DateRangeAggregationBuilder |
dateRange(java.lang.String name)
Create a new
DateRangeAggregationBuilder aggregation with the
given name. |
static DiversifiedAggregationBuilder |
diversifiedSampler(java.lang.String name)
Create a new
Sampler aggregation with the given name. |
static ExtendedStatsAggregationBuilder |
extendedStats(java.lang.String name)
Create a new
ExtendedStats aggregation with the given name. |
static FilterAggregationBuilder |
filter(java.lang.String name,
QueryBuilder filter)
Create a new
Filter aggregation with the given name. |
static FiltersAggregationBuilder |
filters(java.lang.String name,
FiltersAggregator.KeyedFilter... filters)
Create a new
Filters aggregation with the given name. |
static FiltersAggregationBuilder |
filters(java.lang.String name,
QueryBuilder... filters)
Create a new
Filters aggregation with the given name. |
static GeoBoundsAggregationBuilder |
geoBounds(java.lang.String name)
Create a new
GeoBounds aggregation with the given name. |
static GeoCentroidAggregationBuilder |
geoCentroid(java.lang.String name)
Create a new
GeoCentroid aggregation with the given name. |
static GeoDistanceAggregationBuilder |
geoDistance(java.lang.String name,
GeoPoint origin)
Create a new
GeoDistance aggregation with the given name. |
static GeoGridAggregationBuilder |
geohashGrid(java.lang.String name)
Create a new
GeoHashGrid aggregation with the given name. |
static GlobalAggregationBuilder |
global(java.lang.String name)
Create a new
Global aggregation with the given name. |
static HistogramAggregationBuilder |
histogram(java.lang.String name)
Create a new
Histogram aggregation with the given name. |
static IpRangeAggregationBuilder |
ipRange(java.lang.String name)
Create a new
IpRangeAggregationBuilder aggregation with the
given name. |
static MaxAggregationBuilder |
max(java.lang.String name)
Create a new
Max aggregation with the given name. |
static MinAggregationBuilder |
min(java.lang.String name)
Create a new
Min aggregation with the given name. |
static MissingAggregationBuilder |
missing(java.lang.String name)
Create a new
Missing aggregation with the given name. |
static NestedAggregationBuilder |
nested(java.lang.String name,
java.lang.String path)
Create a new
Nested aggregation with the given name. |
static PercentileRanksAggregationBuilder |
percentileRanks(java.lang.String name,
double[] values)
Create a new
PercentileRanks aggregation with the given name. |
static PercentilesAggregationBuilder |
percentiles(java.lang.String name)
Create a new
Percentiles aggregation with the given name. |
static RangeAggregationBuilder |
range(java.lang.String name)
Create a new
Range aggregation with the given name. |
static ReverseNestedAggregationBuilder |
reverseNested(java.lang.String name)
Create a new
ReverseNested aggregation with the given name. |
static SamplerAggregationBuilder |
sampler(java.lang.String name)
Create a new
Sampler aggregation with the given name. |
static ScriptedMetricAggregationBuilder |
scriptedMetric(java.lang.String name)
Create a new
ScriptedMetric aggregation with the given name. |
static SignificantTermsAggregationBuilder |
significantTerms(java.lang.String name)
Create a new
SignificantTerms aggregation with the given name. |
static SignificantTextAggregationBuilder |
significantText(java.lang.String name,
java.lang.String fieldName)
Create a new
SignificantTextAggregationBuilder aggregation with the given name and text field name |
static StatsAggregationBuilder |
stats(java.lang.String name)
Create a new
Stats aggregation with the given name. |
static SumAggregationBuilder |
sum(java.lang.String name)
Create a new
Sum aggregation with the given name. |
static TermsAggregationBuilder |
terms(java.lang.String name)
Create a new
Terms aggregation with the given name. |
static TopHitsAggregationBuilder |
topHits(java.lang.String name)
Create a new
TopHits aggregation with the given name. |
public static ValueCountAggregationBuilder count(java.lang.String name)
ValueCount
aggregation with the given name.public static AvgAggregationBuilder avg(java.lang.String name)
Avg
aggregation with the given name.public static MaxAggregationBuilder max(java.lang.String name)
Max
aggregation with the given name.public static MinAggregationBuilder min(java.lang.String name)
Min
aggregation with the given name.public static SumAggregationBuilder sum(java.lang.String name)
Sum
aggregation with the given name.public static StatsAggregationBuilder stats(java.lang.String name)
Stats
aggregation with the given name.public static ExtendedStatsAggregationBuilder extendedStats(java.lang.String name)
ExtendedStats
aggregation with the given name.public static FilterAggregationBuilder filter(java.lang.String name, QueryBuilder filter)
Filter
aggregation with the given name.public static FiltersAggregationBuilder filters(java.lang.String name, FiltersAggregator.KeyedFilter... filters)
Filters
aggregation with the given name.public static FiltersAggregationBuilder filters(java.lang.String name, QueryBuilder... filters)
Filters
aggregation with the given name.public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(java.lang.String name, java.util.Map<java.lang.String,QueryBuilder> filters)
AdjacencyMatrix
aggregation with the given name.public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(java.lang.String name, java.lang.String separator, java.util.Map<java.lang.String,QueryBuilder> filters)
AdjacencyMatrix
aggregation with the given name and separatorpublic static SamplerAggregationBuilder sampler(java.lang.String name)
Sampler
aggregation with the given name.public static DiversifiedAggregationBuilder diversifiedSampler(java.lang.String name)
Sampler
aggregation with the given name.public static GlobalAggregationBuilder global(java.lang.String name)
Global
aggregation with the given name.public static MissingAggregationBuilder missing(java.lang.String name)
Missing
aggregation with the given name.public static NestedAggregationBuilder nested(java.lang.String name, java.lang.String path)
Nested
aggregation with the given name.public static ReverseNestedAggregationBuilder reverseNested(java.lang.String name)
ReverseNested
aggregation with the given name.public static GeoDistanceAggregationBuilder geoDistance(java.lang.String name, GeoPoint origin)
GeoDistance
aggregation with the given name.public static HistogramAggregationBuilder histogram(java.lang.String name)
Histogram
aggregation with the given name.public static GeoGridAggregationBuilder geohashGrid(java.lang.String name)
GeoHashGrid
aggregation with the given name.public static SignificantTermsAggregationBuilder significantTerms(java.lang.String name)
SignificantTerms
aggregation with the given name.public static SignificantTextAggregationBuilder significantText(java.lang.String name, java.lang.String fieldName)
SignificantTextAggregationBuilder
aggregation with the given name and text field namepublic static DateHistogramAggregationBuilder dateHistogram(java.lang.String name)
DateHistogramAggregationBuilder
aggregation with the given
name.public static RangeAggregationBuilder range(java.lang.String name)
Range
aggregation with the given name.public static DateRangeAggregationBuilder dateRange(java.lang.String name)
DateRangeAggregationBuilder
aggregation with the
given name.public static IpRangeAggregationBuilder ipRange(java.lang.String name)
IpRangeAggregationBuilder
aggregation with the
given name.public static TermsAggregationBuilder terms(java.lang.String name)
Terms
aggregation with the given name.public static PercentilesAggregationBuilder percentiles(java.lang.String name)
Percentiles
aggregation with the given name.public static PercentileRanksAggregationBuilder percentileRanks(java.lang.String name, double[] values)
PercentileRanks
aggregation with the given name.public static CardinalityAggregationBuilder cardinality(java.lang.String name)
Cardinality
aggregation with the given name.public static TopHitsAggregationBuilder topHits(java.lang.String name)
TopHits
aggregation with the given name.public static GeoBoundsAggregationBuilder geoBounds(java.lang.String name)
GeoBounds
aggregation with the given name.public static GeoCentroidAggregationBuilder geoCentroid(java.lang.String name)
GeoCentroid
aggregation with the given name.public static ScriptedMetricAggregationBuilder scriptedMetric(java.lang.String name)
ScriptedMetric
aggregation with the given name.