Class AggregationBuilders
org.elasticsearch.search.aggregations.AggregationBuilders
public class AggregationBuilders
extends
Utility class to create aggregations.
-
Method Summary
Modifier and TypeMethodDescriptionname, separator, <,QueryBuilder> filters)
Create a newAdjacencyMatrix
aggregation with the given name and separatorname, <,QueryBuilder> filters)
Create a newAdjacencyMatrix
aggregation with the given name.static AvgAggregationBuilder
name)
Create a newAvg
aggregation with the given name.name)
Create a newCardinality
aggregation with the given name.static CompositeAggregationBuilder
name, <CompositeValuesSourceBuilder<?>> sources)
Create a newCompositeAggregationBuilder
aggregation with the given name.static ValueCountAggregationBuilder
name)
Create a newValueCount
aggregation with the given name.name)
Create a newDateHistogramAggregationBuilder
aggregation with the given name.static DateRangeAggregationBuilder
name)
Create a newDateRangeAggregationBuilder
aggregation with the given name.name)
Create a newSampler
aggregation with the given name.name)
Create a newExtendedStats
aggregation with the given name.static FilterAggregationBuilder
name, QueryBuilder filter)
Create a newFilter
aggregation with the given name.static FiltersAggregationBuilder
name, QueryBuilder... filters)
Create a newFilters
aggregation with the given name.static FiltersAggregationBuilder
name, FiltersAggregator.KeyedFilter... filters)
Create a newFilters
aggregation with the given name.static GeoBoundsAggregationBuilder
name)
Create a newGeoBounds
aggregation with the given name.name)
Create a newGeoCentroid
aggregation with the given name.name, GeoPoint origin)
Create a newGeoDistance
aggregation with the given name.name)
Create a newInternalGeoHashGrid
aggregation with the given name.name)
Create a newInternalGeoTileGrid
aggregation with the given name.static GlobalAggregationBuilder
name)
Create a newGlobal
aggregation with the given name.static HistogramAggregationBuilder
name)
Create a newHistogram
aggregation with the given name.static IpRangeAggregationBuilder
name)
Create a newIpRangeAggregationBuilder
aggregation with the given name.static MaxAggregationBuilder
name)
Create a newMax
aggregation with the given name.name)
Create a newMedianAbsoluteDeviation
aggregation with the given namestatic MinAggregationBuilder
name)
Create a newMin
aggregation with the given name.static MissingAggregationBuilder
name)
Create a newMissing
aggregation with the given name.static NestedAggregationBuilder
name, path)
Create a newNested
aggregation with the given name.name, double[] values)
Create a newPercentileRanks
aggregation with the given name.name)
Create a newPercentiles
aggregation with the given name.static RangeAggregationBuilder
name)
Create a newRange
aggregation with the given name.name)
Create a newReverseNested
aggregation with the given name.static SamplerAggregationBuilder
name)
Create a newSampler
aggregation with the given name.name)
Create a newScriptedMetric
aggregation with the given name.name)
Create a newSignificantTerms
aggregation with the given name.name, fieldName)
Create a newSignificantTextAggregationBuilder
aggregation with the given name and text field namestatic StatsAggregationBuilder
name)
Create a newStats
aggregation with the given name.static SumAggregationBuilder
name)
Create a newSum
aggregation with the given name.static TermsAggregationBuilder
name)
Create a newTerms
aggregation with the given name.static TopHitsAggregationBuilder
name)
Create a newTopHits
aggregation with the given name.name)
Create a newAvg
aggregation with the given name.Methods inherited from class java.lang.
, , , , , , , , , ,
-
Method Details
-
count
public static name)Create a newValueCount
aggregation with the given name. -
avg
public static name)Create a newAvg
aggregation with the given name. -
weightedAvg
public static name)Create a newAvg
aggregation with the given name. -
max
public static name)Create a newMax
aggregation with the given name. -
min
public static name)Create a newMin
aggregation with the given name. -
sum
public static name)Create a newSum
aggregation with the given name. -
stats
public static name)Create a newStats
aggregation with the given name. -
extendedStats
public static name)Create a newExtendedStats
aggregation with the given name. -
filter
public static name, QueryBuilder filter)Create a newFilter
aggregation with the given name. -
filters
public static name, FiltersAggregator.KeyedFilter... filters)Create a newFilters
aggregation with the given name. -
filters
public static name, QueryBuilder... filters)Create a newFilters
aggregation with the given name. -
adjacencyMatrix
public static name, <,QueryBuilder> filters)Create a newAdjacencyMatrix
aggregation with the given name. -
adjacencyMatrix
public static name, separator, <,QueryBuilder> filters)Create a newAdjacencyMatrix
aggregation with the given name and separator -
sampler
public static name)Create a newSampler
aggregation with the given name. -
diversifiedSampler
public static name)Create a newSampler
aggregation with the given name. -
global
public static name)Create a newGlobal
aggregation with the given name. -
missing
public static name)Create a newMissing
aggregation with the given name. -
nested
public static name, path)Create a newNested
aggregation with the given name. -
reverseNested
public static name)Create a newReverseNested
aggregation with the given name. -
geoDistance
public static name, GeoPoint origin)Create a newGeoDistance
aggregation with the given name. -
histogram
public static name)Create a newHistogram
aggregation with the given name. -
geohashGrid
public static name)Create a newInternalGeoHashGrid
aggregation with the given name. -
geotileGrid
public static name)Create a newInternalGeoTileGrid
aggregation with the given name. -
significantTerms
public static name)Create a newSignificantTerms
aggregation with the given name. -
significantText
public static name, fieldName)Create a newSignificantTextAggregationBuilder
aggregation with the given name and text field name -
dateHistogram
public static name)Create a newDateHistogramAggregationBuilder
aggregation with the given name. -
range
public static name)Create a newRange
aggregation with the given name. -
dateRange
public static name)Create a newDateRangeAggregationBuilder
aggregation with the given name. -
ipRange
public static name)Create a newIpRangeAggregationBuilder
aggregation with the given name. -
terms
public static name)Create a newTerms
aggregation with the given name. -
percentiles
public static name)Create a newPercentiles
aggregation with the given name. -
percentileRanks
public static name, double[] values)Create a newPercentileRanks
aggregation with the given name. -
medianAbsoluteDeviation
public static name)Create a newMedianAbsoluteDeviation
aggregation with the given name -
cardinality
public static name)Create a newCardinality
aggregation with the given name. -
topHits
public static name)Create a newTopHits
aggregation with the given name. -
geoBounds
public static name)Create a newGeoBounds
aggregation with the given name. -
geoCentroid
public static name)Create a newGeoCentroid
aggregation with the given name. -
scriptedMetric
public static name)Create a newScriptedMetric
aggregation with the given name. -
composite
public static name, <CompositeValuesSourceBuilder<?>> sources)Create a newCompositeAggregationBuilder
aggregation with the given name.
-