/** * Returns the aggregation that is associated with the specified name. */ @SuppressWarnings("unchecked") public final <A extends Aggregation> A get(String name) { return (A) asMap().get(name); }
/** * Returns the aggregation that is associated with the specified name. */ @SuppressWarnings("unchecked") public final <A extends Aggregation> A get(String name) { return (A) asMap().get(name); }
/** * Returns the aggregation that is associated with the specified name. */ @SuppressWarnings("unchecked") public final <A extends Aggregation> A get(String name) { return (A) asMap().get(name); }
/** * Returns the aggregation that is associated with the specified name. */ @SuppressWarnings("unchecked") public final <A extends Aggregation> A get(String name) { return (A) asMap().get(name); }
for (String name : response.getAggregations().asMap().keySet()) { Terms termsAgg = response.getAggregations().get(name); ESTermsAggregation aggregation = new ESTermsAggregation(name, null);
for (String name : response.getAggregations().asMap().keySet()) { Terms termsAgg = response.getAggregations().get(name); ESTermsAggregation aggregation = new ESTermsAggregation(name, null);
for (String name : response.getAggregations().asMap().keySet()) { Terms termsAgg = response.getAggregations().get(name); ESTermsAggregation aggregation = new ESTermsAggregation(name, null);
/** * Returns all computed aggregations as a map * * @return a map containing the computed aggregations per field */ public Map<String, org.elasticsearch.search.aggregations.Aggregation> getAggregations() { return response.getAggregations().asMap(); } }
Map<String, Aggregation> subaggmap = bucket.getAggregations().asMap(); termsResultBean(subaggmap, methods.subList(1, methods.size()), terms.subList(1, terms.size()), newT, false, list); } else if (terms.size() == 1) {
resultMap.put(terms.get(0), team); Map<String, Aggregation> subaggmap = bucket2.getAggregations().asMap(); if (terms.size() == 1) { double total = ((InternalNumericMetricsAggregation.SingleValue) subaggmap.get(sumName)).value();
list.add(resultMap); } else if (terms.size() > 1) { Map<String, Aggregation> subaggmap = bucket.getAggregations().asMap(); termsResult(subaggmap, terms.subList(1, terms.size()), resultMap, false, list);
).execute().actionGet(); Map<String, Aggregation> aggregationMap = searchResponse.getAggregations().asMap(); logger.info("--------------------------------:" + productGroupByPriceBucket.getKey() + ":" + productGroupByPriceBucket.getDocCount()); Histogram productGroupByPrice1 = (Histogram) productGroupByPriceBucket.getAggregations().asMap().get("product_group_by_price"); Iterator<org.elasticsearch.search.aggregations.bucket.histogram.Histogram.Bucket> groupByCreateDateTimeIterator = productGroupByPrice1.getBuckets().iterator(); while (groupByCreateDateTimeIterator.hasNext()) { logger.info("--------------------------------:" + groupByCreateDateTimeBucket.getKey() + ":" + groupByCreateDateTimeBucket.getDocCount()); Avg avgPrice = (Avg) groupByCreateDateTimeBucket.getAggregations().asMap().get("product_avg_price"); logger.info("--------------------------------:" + avgPrice.getValue());
for (String name : response.getAggregations().asMap().keySet()) { Terms termsAgg = response.getAggregations().get(name); ESTermsAggregation aggregation = new ESTermsAggregation(name, null);