Class AggregationBuilders
- java.lang.Object
-
- org.elasticsearch.search.aggregations.AggregationBuilders
-
public class AggregationBuilders extends java.lang.ObjectUtility class to create aggregations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdjacencyMatrixAggregationBuilderadjacencyMatrix(java.lang.String name, java.lang.String separator, java.util.Map<java.lang.String,QueryBuilder> filters)Create a newAdjacencyMatrixaggregation with the given name and separatorstatic AdjacencyMatrixAggregationBuilderadjacencyMatrix(java.lang.String name, java.util.Map<java.lang.String,QueryBuilder> filters)Create a newAdjacencyMatrixaggregation with the given name.static AvgAggregationBuilderavg(java.lang.String name)Create a newAvgaggregation with the given name.static CardinalityAggregationBuildercardinality(java.lang.String name)Create a newCardinalityaggregation with the given name.static ValueCountAggregationBuildercount(java.lang.String name)Create a newValueCountaggregation with the given name.static DateHistogramAggregationBuilderdateHistogram(java.lang.String name)Create a newDateHistogramAggregationBuilderaggregation with the given name.static DateRangeAggregationBuilderdateRange(java.lang.String name)Create a newDateRangeAggregationBuilderaggregation with the given name.static DiversifiedAggregationBuilderdiversifiedSampler(java.lang.String name)Create a newSampleraggregation with the given name.static ExtendedStatsAggregationBuilderextendedStats(java.lang.String name)Create a newExtendedStatsaggregation with the given name.static FilterAggregationBuilderfilter(java.lang.String name, QueryBuilder filter)Create a newFilteraggregation with the given name.static FiltersAggregationBuilderfilters(java.lang.String name, QueryBuilder... filters)Create a newFiltersaggregation with the given name.static FiltersAggregationBuilderfilters(java.lang.String name, FiltersAggregator.KeyedFilter... filters)Create a newFiltersaggregation with the given name.static GeoBoundsAggregationBuildergeoBounds(java.lang.String name)Create a newGeoBoundsaggregation with the given name.static GeoCentroidAggregationBuildergeoCentroid(java.lang.String name)Create a newGeoCentroidaggregation with the given name.static GeoDistanceAggregationBuildergeoDistance(java.lang.String name, GeoPoint origin)Create a newGeoDistanceaggregation with the given name.static GeoGridAggregationBuildergeohashGrid(java.lang.String name)Create a newGeoHashGridaggregation with the given name.static GlobalAggregationBuilderglobal(java.lang.String name)Create a newGlobalaggregation with the given name.static HistogramAggregationBuilderhistogram(java.lang.String name)Create a newHistogramaggregation with the given name.static IpRangeAggregationBuilderipRange(java.lang.String name)Create a newIpRangeAggregationBuilderaggregation with the given name.static MaxAggregationBuildermax(java.lang.String name)Create a newMaxaggregation with the given name.static MedianAbsoluteDeviationAggregationBuildermedianAbsoluteDeviation(java.lang.String name)Create a newMedianAbsoluteDeviationaggregation with the given namestatic MinAggregationBuildermin(java.lang.String name)Create a newMinaggregation with the given name.static MissingAggregationBuildermissing(java.lang.String name)Create a newMissingaggregation with the given name.static NestedAggregationBuildernested(java.lang.String name, java.lang.String path)Create a newNestedaggregation with the given name.static PercentileRanksAggregationBuilderpercentileRanks(java.lang.String name, double[] values)Create a newPercentileRanksaggregation with the given name.static PercentilesAggregationBuilderpercentiles(java.lang.String name)Create a newPercentilesaggregation with the given name.static RangeAggregationBuilderrange(java.lang.String name)Create a newRangeaggregation with the given name.static ReverseNestedAggregationBuilderreverseNested(java.lang.String name)Create a newReverseNestedaggregation with the given name.static SamplerAggregationBuildersampler(java.lang.String name)Create a newSampleraggregation with the given name.static ScriptedMetricAggregationBuilderscriptedMetric(java.lang.String name)Create a newScriptedMetricaggregation with the given name.static SignificantTermsAggregationBuildersignificantTerms(java.lang.String name)Create a newSignificantTermsaggregation with the given name.static SignificantTextAggregationBuildersignificantText(java.lang.String name, java.lang.String fieldName)Create a newSignificantTextAggregationBuilderaggregation with the given name and text field namestatic StatsAggregationBuilderstats(java.lang.String name)Create a newStatsaggregation with the given name.static SumAggregationBuildersum(java.lang.String name)Create a newSumaggregation with the given name.static TermsAggregationBuilderterms(java.lang.String name)Create a newTermsaggregation with the given name.static TopHitsAggregationBuildertopHits(java.lang.String name)Create a newTopHitsaggregation with the given name.static WeightedAvgAggregationBuilderweightedAvg(java.lang.String name)Create a newAvgaggregation with the given name.
-
-
-
Method Detail
-
count
public static ValueCountAggregationBuilder count(java.lang.String name)
Create a newValueCountaggregation with the given name.
-
avg
public static AvgAggregationBuilder avg(java.lang.String name)
Create a newAvgaggregation with the given name.
-
weightedAvg
public static WeightedAvgAggregationBuilder weightedAvg(java.lang.String name)
Create a newAvgaggregation with the given name.
-
max
public static MaxAggregationBuilder max(java.lang.String name)
Create a newMaxaggregation with the given name.
-
min
public static MinAggregationBuilder min(java.lang.String name)
Create a newMinaggregation with the given name.
-
sum
public static SumAggregationBuilder sum(java.lang.String name)
Create a newSumaggregation with the given name.
-
stats
public static StatsAggregationBuilder stats(java.lang.String name)
Create a newStatsaggregation with the given name.
-
extendedStats
public static ExtendedStatsAggregationBuilder extendedStats(java.lang.String name)
Create a newExtendedStatsaggregation with the given name.
-
filter
public static FilterAggregationBuilder filter(java.lang.String name, QueryBuilder filter)
Create a newFilteraggregation with the given name.
-
filters
public static FiltersAggregationBuilder filters(java.lang.String name, FiltersAggregator.KeyedFilter... filters)
Create a newFiltersaggregation with the given name.
-
filters
public static FiltersAggregationBuilder filters(java.lang.String name, QueryBuilder... filters)
Create a newFiltersaggregation with the given name.
-
adjacencyMatrix
public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(java.lang.String name, java.util.Map<java.lang.String,QueryBuilder> filters)
Create a newAdjacencyMatrixaggregation with the given name.
-
adjacencyMatrix
public static AdjacencyMatrixAggregationBuilder adjacencyMatrix(java.lang.String name, java.lang.String separator, java.util.Map<java.lang.String,QueryBuilder> filters)
Create a newAdjacencyMatrixaggregation with the given name and separator
-
sampler
public static SamplerAggregationBuilder sampler(java.lang.String name)
Create a newSampleraggregation with the given name.
-
diversifiedSampler
public static DiversifiedAggregationBuilder diversifiedSampler(java.lang.String name)
Create a newSampleraggregation with the given name.
-
global
public static GlobalAggregationBuilder global(java.lang.String name)
Create a newGlobalaggregation with the given name.
-
missing
public static MissingAggregationBuilder missing(java.lang.String name)
Create a newMissingaggregation with the given name.
-
nested
public static NestedAggregationBuilder nested(java.lang.String name, java.lang.String path)
Create a newNestedaggregation with the given name.
-
reverseNested
public static ReverseNestedAggregationBuilder reverseNested(java.lang.String name)
Create a newReverseNestedaggregation with the given name.
-
geoDistance
public static GeoDistanceAggregationBuilder geoDistance(java.lang.String name, GeoPoint origin)
Create a newGeoDistanceaggregation with the given name.
-
histogram
public static HistogramAggregationBuilder histogram(java.lang.String name)
Create a newHistogramaggregation with the given name.
-
geohashGrid
public static GeoGridAggregationBuilder geohashGrid(java.lang.String name)
Create a newGeoHashGridaggregation with the given name.
-
significantTerms
public static SignificantTermsAggregationBuilder significantTerms(java.lang.String name)
Create a newSignificantTermsaggregation with the given name.
-
significantText
public static SignificantTextAggregationBuilder significantText(java.lang.String name, java.lang.String fieldName)
Create a newSignificantTextAggregationBuilderaggregation with the given name and text field name
-
dateHistogram
public static DateHistogramAggregationBuilder dateHistogram(java.lang.String name)
Create a newDateHistogramAggregationBuilderaggregation with the given name.
-
range
public static RangeAggregationBuilder range(java.lang.String name)
Create a newRangeaggregation with the given name.
-
dateRange
public static DateRangeAggregationBuilder dateRange(java.lang.String name)
Create a newDateRangeAggregationBuilderaggregation with the given name.
-
ipRange
public static IpRangeAggregationBuilder ipRange(java.lang.String name)
Create a newIpRangeAggregationBuilderaggregation with the given name.
-
terms
public static TermsAggregationBuilder terms(java.lang.String name)
Create a newTermsaggregation with the given name.
-
percentiles
public static PercentilesAggregationBuilder percentiles(java.lang.String name)
Create a newPercentilesaggregation with the given name.
-
percentileRanks
public static PercentileRanksAggregationBuilder percentileRanks(java.lang.String name, double[] values)
Create a newPercentileRanksaggregation with the given name.
-
medianAbsoluteDeviation
public static MedianAbsoluteDeviationAggregationBuilder medianAbsoluteDeviation(java.lang.String name)
Create a newMedianAbsoluteDeviationaggregation with the given name
-
cardinality
public static CardinalityAggregationBuilder cardinality(java.lang.String name)
Create a newCardinalityaggregation with the given name.
-
topHits
public static TopHitsAggregationBuilder topHits(java.lang.String name)
Create a newTopHitsaggregation with the given name.
-
geoBounds
public static GeoBoundsAggregationBuilder geoBounds(java.lang.String name)
Create a newGeoBoundsaggregation with the given name.
-
geoCentroid
public static GeoCentroidAggregationBuilder geoCentroid(java.lang.String name)
Create a newGeoCentroidaggregation with the given name.
-
scriptedMetric
public static ScriptedMetricAggregationBuilder scriptedMetric(java.lang.String name)
Create a newScriptedMetricaggregation with the given name.
-
-