Class InternalGeoHashGrid
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<InternalGeoGrid,InternalGeoGridBucket>
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid<InternalGeoHashGridBucket>
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoHashGrid
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,Aggregation,GeoGrid,MultiBucketsAggregation
public class InternalGeoHashGrid extends InternalGeoGrid<InternalGeoHashGridBucket>
Represents a grid of cells where each cell's location is determined by a geohash.
All geohashes in a grid are of the same precision and held internally as a single long
for efficiency's sake.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
InternalMultiBucketAggregation.InternalBucketNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation
InternalAggregation.ReduceContextNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.Aggregation
Aggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.geogrid.GeoGrid
GeoGrid.BucketNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregation
MultiBucketsAggregation.BucketNested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid
buckets, requiredSizeFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metaData, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITER -
Constructor Summary
Constructors Constructor Description InternalGeoHashGrid(StreamInput in) -
Method Summary
Modifier and Type Method Description InternalGeoGridcreate(java.util.List<InternalGeoGridBucket> buckets)Create a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.InternalGeoGridBucketcreateBucket(InternalAggregations aggregations, InternalGeoGridBucket prototype)Create a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.java.lang.StringgetWriteableName()Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid
doWriteTo, doXContentBody, equals, getBuckets, hashCode, reduce, reduceBucketMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
countInnerBucket, countInnerBucket, getProperty, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
getMetaData, getName, getProperty, getType, isMapped, pipelineAggregators, readSize, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.Aggregation
getMetaData, getName, getType
-
Constructor Details
-
InternalGeoHashGrid
- Throws:
java.io.IOException
-
-
Method Details
-
create
Description copied from class:InternalMultiBucketAggregationCreate a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.- Specified by:
createin classInternalMultiBucketAggregation<InternalGeoGrid,InternalGeoGridBucket>- Parameters:
buckets- the buckets to use in the newAggregation- Returns:
- the new
Aggregation
-
createBucket
public InternalGeoGridBucket createBucket(InternalAggregations aggregations, InternalGeoGridBucket prototype)Description copied from class:InternalMultiBucketAggregationCreate a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.- Specified by:
createBucketin classInternalMultiBucketAggregation<InternalGeoGrid,InternalGeoGridBucket>- Parameters:
aggregations- the aggregations for the new bucketprototype- the bucket to use as a prototype- Returns:
- the new bucket
-
getWriteableName
public java.lang.String getWriteableName()Description copied from interface:NamedWriteableReturns the name of the writeable object
-