public abstract class MetricAggregation extends Aggregation
jsonRoot, name| Constructor and Description |
|---|
MetricAggregation(String name,
com.google.gson.JsonObject root) |
equals, getName, hashCodepublic MetricAggregation(String name, com.google.gson.JsonObject root)
public List<Aggregation> getAggregations(Map<String,Class> nameToTypeMap)
nameToTypeMap - a map of aggNames to their expected type (extension of Aggregation class)RuntimeException - if no constructor found for an expected type in the mappublic <T extends Aggregation> T getAggregation(String aggName, Class<T> aggType)
aggName - Name of the desired aggregationaggType - Extension of Aggregation class expected as return typeRuntimeException - if no constructor exists for provided aggTypepublic AvgAggregation getAvgAggregation(String aggName)
aggName - Name of the AvgAggregationpublic CardinalityAggregation getCardinalityAggregation(String aggName)
aggName - Name of the CardinalityAggregationpublic DateHistogramAggregation getDateHistogramAggregation(String aggName)
aggName - Name of the DateHistogramAggregationpublic DateRangeAggregation getDateRangeAggregation(String aggName)
aggName - Name of the DateRangeAggregationpublic ExtendedStatsAggregation getExtendedStatsAggregation(String aggName)
aggName - Name of the ExtendedStatsAggregationpublic FilterAggregation getFilterAggregation(String aggName)
aggName - Name of the FilterAggregationpublic FiltersAggregation getFiltersAggregation(String aggName)
aggName - Name of the FiltersAggregationpublic GeoBoundsAggregation getGeoBoundsAggregation(String aggName)
aggName - Name of the GeoBoundsAggregationpublic GeoDistanceAggregation getGeoDistanceAggregation(String aggName)
aggName - Name of the GeoDistanceAggregationpublic GeoHashGridAggregation getGeohashGridAggregation(String aggName)
aggName - Name of the GeohashGridAggregationpublic HistogramAggregation getHistogramAggregation(String aggName)
aggName - Name of the HistogramAggregationpublic Ipv4RangeAggregation getIpv4RangeAggregation(String aggName)
aggName - Name of the Ipv4RangeAggregationpublic MaxAggregation getMaxAggregation(String aggName)
aggName - Name of the MaxAggregationpublic MinAggregation getMinAggregation(String aggName)
aggName - Name of the MinAggregationpublic MissingAggregation getMissingAggregation(String aggName)
aggName - Name of the MissingAggregationpublic PercentileRanksAggregation getPercentileRanksAggregation(String aggName)
aggName - Name of the PercentileRanksAggregationpublic PercentilesAggregation getPercentilesAggregation(String aggName)
aggName - Name of the PercentilesAggregationpublic RangeAggregation getRangeAggregation(String aggName)
aggName - Name of the RangeAggregationpublic ScriptedMetricAggregation getScriptedMetricAggregation(String aggName)
aggName - Name of the ScriptedMetricAggregationpublic SignificantTermsAggregation getSignificantTermsAggregation(String aggName)
aggName - Name of the SignificantTermsAggregationpublic StatsAggregation getStatsAggregation(String aggName)
aggName - Name of the StatsAggregationpublic SumAggregation getSumAggregation(String aggName)
aggName - Name of the SumAggregationpublic TermsAggregation getTermsAggregation(String aggName)
aggName - Name of the TermsAggregationpublic ValueCountAggregation getValueCountAggregation(String aggName)
aggName - Name of the ValueCountAggregationpublic TopHitsAggregation getTopHitsAggregation(String aggName)
Copyright © 2017. All rights reserved.