public class AggregiationQueryUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_GEOHASH_PRECISION |
static int |
MIN_GEOHASH_PRECISION |
| Constructor and Description |
|---|
AggregiationQueryUtils() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Long> |
convertGeohashAggregationToMap(org.elasticsearch.action.search.SearchResponse r,
String aggregationName) |
Map<String,Long> |
convertTermsAggregationToMap(org.elasticsearch.action.search.SearchResponse r,
String aggregationName) |
Map<String,Long> |
convertTimelineAggregationToMap(org.elasticsearch.action.search.SearchResponse r,
String aggregationName) |
org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder |
createGeohashAggregation(String field,
int precision,
int size) |
org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder |
createTermAggregation(String field,
int size) |
org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder |
createTimelineAggregation(String field,
TimeInterval interval) |
public static final int MIN_GEOHASH_PRECISION
public static final int MAX_GEOHASH_PRECISION
public Map<String,Long> convertGeohashAggregationToMap(org.elasticsearch.action.search.SearchResponse r, String aggregationName)
public Map<String,Long> convertTermsAggregationToMap(org.elasticsearch.action.search.SearchResponse r, String aggregationName)
public Map<String,Long> convertTimelineAggregationToMap(org.elasticsearch.action.search.SearchResponse r, String aggregationName)
public org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregationBuilder createGeohashAggregation(String field, int precision, int size)
public org.elasticsearch.search.aggregations.bucket.terms.TermsAggregationBuilder createTermAggregation(String field, int size)
public org.elasticsearch.search.aggregations.bucket.histogram.DateHistogramAggregationBuilder createTimelineAggregation(String field, TimeInterval interval)
Copyright © 2017 Committed. All rights reserved.