public class InternalGeoHashGrid extends InternalMultiBucketAggregation<InternalGeoHashGrid,org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> implements GeoHashGrid
InternalMultiBucketAggregation.InternalBucketInternalAggregation.ReduceContextAggregation.CommonFieldsToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsWriteable.Reader<V>, Writeable.Writer<V>metaData, nameTYPED_KEYS_DELIMITEREMPTY_PARAMS| Constructor and Description |
|---|
InternalGeoHashGrid(StreamInput in)
Read from a stream.
|
| 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. |
protected boolean |
doEquals(java.lang.Object obj)
Opportunity for subclasses to add criteria to the
InternalAggregation.equals(Object)
method for this class. |
protected int |
doHashCode()
Opportunity for subclasses to the
InternalAggregation.hashCode() for this
class. |
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<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> |
getBuckets() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
getPropertyequals, getMetaData, getName, getProperty, getType, hashCode, pipelineAggregators, readSize, reduce, toString, toXContent, writeSize, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetMetaData, getName, getTypeisFragmenttoXContentpublic InternalGeoHashGrid(StreamInput in) throws java.io.IOException
java.io.IOExceptionprotected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo in class InternalAggregationjava.io.IOExceptionpublic java.lang.String getWriteableName()
NamedWriteablegetWriteableName in interface NamedWriteablepublic InternalGeoHashGrid create(java.util.List<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> buckets)
InternalMultiBucketAggregationAggregation 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 AggregationAggregationpublic org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket createBucket(InternalAggregations aggregations, org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket prototype)
InternalMultiBucketAggregationInternalMultiBucketAggregation.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<org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket> getBuckets()
getBuckets in interface GeoHashGridgetBuckets in interface MultiBucketsAggregationgetBuckets in class InternalMultiBucketAggregation<InternalGeoHashGrid,org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid.Bucket>public InternalGeoHashGrid doReduce(java.util.List<InternalAggregation> aggregations, InternalAggregation.ReduceContext reduceContext)
doReduce in class InternalAggregationpublic XContentBuilder doXContentBody(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContentBody in class InternalAggregationjava.io.IOExceptionprotected int doHashCode()
InternalAggregationInternalAggregation.hashCode() for this
class.doHashCode in class InternalAggregationprotected boolean doEquals(java.lang.Object obj)
InternalAggregationInternalAggregation.equals(Object)
method for this class.
This method can safely cast obj to the subclass since the
InternalAggregation.equals(Object) method checks that obj is the same
class as thisdoEquals in class InternalAggregation