public class GeoGridAggregationBuilder extends ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder> implements MultiBucketAggregationBuilder
ValuesSourceAggregationBuilder.LeafOnly<VS extends ValuesSource,AB extends ValuesSourceAggregationBuilder<VS,AB>>AggregationBuilder.CommonFieldsWriteable.Reader<V>, Writeable.Writer<V>ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_NUM_CELLS |
static int |
DEFAULT_PRECISION |
static java.lang.String |
NAME |
configmetaDatafactoriesBuilder, nameEMPTY_PARAMS| Constructor and Description |
|---|
GeoGridAggregationBuilder(StreamInput in)
Read from a stream.
|
GeoGridAggregationBuilder(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
protected XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.lang.String |
getType()
The name of the type of aggregation built by this builder.
|
protected ValuesSourceAggregatorFactory<ValuesSource.GeoPoint,?> |
innerBuild(SearchContext context,
ValuesSourceConfig<ValuesSource.GeoPoint> config,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder) |
protected boolean |
innerEquals(java.lang.Object obj) |
protected int |
innerHashCode() |
protected void |
innerWriteTo(StreamOutput out)
Write subclass's state to the stream.
|
static GeoGridAggregationBuilder |
parse(java.lang.String aggregationName,
XContentParser parser) |
int |
precision() |
GeoGridAggregationBuilder |
precision(int precision) |
int |
shardSize() |
GeoGridAggregationBuilder |
shardSize(int shardSize) |
int |
size() |
GeoGridAggregationBuilder |
size(int size) |
doBuild, doEquals, doHashCode, doWriteTo, field, field, format, format, internalXContent, missing, missing, resolveConfig, script, script, serializeTargetValueType, timeZone, timeZone, valueType, valueTypebuild, equals, getMetaData, getWriteableName, hashCode, setMetaData, subAggregation, subAggregation, subAggregations, toXContent, writeTodoRewrite, getName, getPipelineAggregations, getSubAggregations, rewrite, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitisFragmentpublic static final java.lang.String NAME
public static final int DEFAULT_PRECISION
public static final int DEFAULT_MAX_NUM_CELLS
public GeoGridAggregationBuilder(java.lang.String name)
public GeoGridAggregationBuilder(StreamInput in) throws java.io.IOException
java.io.IOExceptionpublic static GeoGridAggregationBuilder parse(java.lang.String aggregationName, XContentParser parser) throws java.io.IOException
java.io.IOExceptionprotected void innerWriteTo(StreamOutput out) throws java.io.IOException
ValuesSourceAggregationBuilderinnerWriteTo in class ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder>java.io.IOExceptionpublic GeoGridAggregationBuilder precision(int precision)
public int precision()
public GeoGridAggregationBuilder size(int size)
public int size()
public GeoGridAggregationBuilder shardSize(int shardSize)
public int shardSize()
protected ValuesSourceAggregatorFactory<ValuesSource.GeoPoint,?> innerBuild(SearchContext context, ValuesSourceConfig<ValuesSource.GeoPoint> config, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactoriesBuilder) throws java.io.IOException
innerBuild in class ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder>java.io.IOExceptionprotected XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder>java.io.IOExceptionprotected boolean innerEquals(java.lang.Object obj)
innerEquals in class ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder>protected int innerHashCode()
innerHashCode in class ValuesSourceAggregationBuilder<ValuesSource.GeoPoint,GeoGridAggregationBuilder>public java.lang.String getType()
BaseAggregationBuildergetType in interface BaseAggregationBuilder