public class GeoHashGridParser extends Object implements Aggregator.Parser
GeoBoundingBoxFilterBuilder
aggregation to focus in on a smaller area to avoid generating too many buckets and using too much RAM| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NUM_CELLS |
static int |
DEFAULT_PRECISION |
| Constructor and Description |
|---|
GeoHashGridParser() |
| Modifier and Type | Method and Description |
|---|---|
AggregatorFactory |
parse(String aggregationName,
XContentParser parser,
SearchContext context)
Returns the aggregator factory with which this parser is associated, may return
null indicating the
aggregation should be skipped (e.g. |
String |
type() |
public static final int DEFAULT_PRECISION
public static final int DEFAULT_MAX_NUM_CELLS
public String type()
type in interface Aggregator.Parserpublic AggregatorFactory parse(String aggregationName, XContentParser parser, SearchContext context) throws IOException
Aggregator.Parsernull indicating the
aggregation should be skipped (e.g. when trying to aggregate on unmapped fields).parse in interface Aggregator.ParseraggregationName - The name of the aggregationparser - The xcontent parsercontext - The search contextnull in case the aggregation should be skippedIOException - When parsing failsCopyright © 2009–2016. All rights reserved.