public class InternalGeoHashGrid extends InternalMultiBucketAggregation<InternalGeoHashGrid,org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> implements GeoHashGrid
InternalMultiBucketAggregation.InternalBucket
InternalAggregation.CommonFields, InternalAggregation.ReduceContext, InternalAggregation.Type
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Writeable.Reader<V>, Writeable.Writer<V>
metaData, name
EMPTY_PARAMS
Constructor and Description |
---|
InternalGeoHashGrid(StreamInput in)
Read from a stream.
|
InternalGeoHashGrid(java.lang.String name,
int requiredSize,
java.util.List<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> buckets,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalGeoHashGrid |
create(java.util.List<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> buckets)
Create a new copy of this
Aggregation with the same settings as
this Aggregation and contains the provided buckets. |
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket |
createBucket(InternalAggregations aggregations,
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket prototype)
Create a new
InternalMultiBucketAggregation.InternalBucket using the provided prototype bucket
and aggregations. |
InternalGeoHashGrid |
doReduce(java.util.List<InternalAggregation> aggregations,
InternalAggregation.ReduceContext reduceContext) |
protected void |
doWriteTo(StreamOutput out) |
XContentBuilder |
doXContentBody(XContentBuilder builder,
ToXContent.Params params) |
java.util.List<GeoHashGrid.Bucket> |
getBuckets() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getProperty
getMetaData, getName, getProperty, pipelineAggregators, readSize, reduce, toXContent, writeSize, writeTo
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetaData, getName, getProperty
public InternalGeoHashGrid(java.lang.String name, int requiredSize, java.util.List<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> buckets, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
public InternalGeoHashGrid(StreamInput in) throws java.io.IOException
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class InternalAggregation
java.io.IOException
public java.lang.String getWriteableName()
NamedWriteable
getWriteableName
in interface NamedWriteable
public InternalGeoHashGrid create(java.util.List<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> buckets)
InternalMultiBucketAggregation
Aggregation
with the same settings as
this Aggregation
and contains the provided buckets.create
in class InternalMultiBucketAggregation<InternalGeoHashGrid,org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket>
buckets
- the buckets to use in the new Aggregation
Aggregation
public org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket prototype)
InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucket
using the provided prototype bucket
and aggregations.createBucket
in class InternalMultiBucketAggregation<InternalGeoHashGrid,org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket>
aggregations
- the aggregations for the new bucketprototype
- the bucket to use as a prototypepublic java.util.List<GeoHashGrid.Bucket> getBuckets()
getBuckets
in interface GeoHashGrid
getBuckets
in interface MultiBucketsAggregation
public InternalGeoHashGrid doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce
in class InternalAggregation
public XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody
in class InternalAggregation
java.io.IOException