public class GeoHashGridBuilder extends AggregationBuilder<GeoHashGridBuilder>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
type
EMPTY_PARAMS
Constructor and Description |
---|
GeoHashGridBuilder(String name)
Sole constructor.
|
Modifier and Type | Method and Description |
---|---|
GeoHashGridBuilder |
field(String field)
Set the field to use to get geo points.
|
protected XContentBuilder |
internalXContent(XContentBuilder builder,
ToXContent.Params params) |
GeoHashGridBuilder |
precision(int precision)
Set the geohash precision to use for this aggregation.
|
GeoHashGridBuilder |
shardSize(int shardSize)
Expert: Set the number of buckets to get on each shard to improve
accuracy.
|
GeoHashGridBuilder |
size(int requiredSize)
Set the number of buckets to return.
|
setMetaData, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, subAggregation, toXContent
getName
public GeoHashGridBuilder(String name)
public GeoHashGridBuilder field(String field)
public GeoHashGridBuilder precision(int precision)
public GeoHashGridBuilder size(int requiredSize)
public GeoHashGridBuilder shardSize(int shardSize)
protected XContentBuilder internalXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
internalXContent
in class AggregationBuilder<GeoHashGridBuilder>
IOException
Copyright © 2009–2017. All rights reserved.