Module org.elasticsearch.server
Class InternalGeoTileGrid
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<InternalGeoGrid<InternalGeoTileGridBucket>,InternalGeoGridBucket>
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid<InternalGeoTileGridBucket>
org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoTileGrid
- All Implemented Interfaces:
NamedWriteable,Writeable,Aggregation,GeoGrid,MultiBucketsAggregation,ToXContent,ToXContentFragment
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.BucketAggregationList<B extends MultiBucketsAggregation.Bucket>, InternalMultiBucketAggregation.InternalBucket, InternalMultiBucketAggregation.InternalBucketWritableNested 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.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.InternalMultiBucketAggregation
REPORT_EMPTY_EVERYFields inherited from class org.elasticsearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.elasticsearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected InternalGeoGrid<InternalGeoTileGridBucket> create(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) create(List<InternalGeoGridBucket> buckets) Create a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.protected InternalGeoTileGridBucketcreateBucket(long hashAsLong, long docCount, InternalAggregations aggregations) createBucket(InternalAggregations aggregations, InternalGeoGridBucket prototype) Create a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.protected Writeable.Reader<InternalGeoTileGridBucket> Returns the name of the writeable objectMethods inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGrid
doWriteTo, doXContentBody, equals, finalizeSampling, getBuckets, getLeaderReducer, hashCodeMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregation
copyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregation
canLeadReduction, getMetadata, getName, getProperty, getReducer, getType, readSize, sortValue, sortValue, 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, getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContent
toXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
InternalGeoTileGrid
- Throws:
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<InternalGeoTileGridBucket>,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<InternalGeoTileGridBucket>,InternalGeoGridBucket> - Parameters:
aggregations- the aggregations for the new bucketprototype- the bucket to use as a prototype- Returns:
- the new bucket
-
create
protected InternalGeoGrid<InternalGeoTileGridBucket> create(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) - Specified by:
createin classInternalGeoGrid<InternalGeoTileGridBucket>
-
createBucket
protected InternalGeoTileGridBucket createBucket(long hashAsLong, long docCount, InternalAggregations aggregations) - Specified by:
createBucketin classInternalGeoGrid<InternalGeoTileGridBucket>
-
getBucketReader
- Specified by:
getBucketReaderin classInternalGeoGrid<InternalGeoTileGridBucket>
-
getWriteableName
Description copied from interface:NamedWriteableReturns the name of the writeable object
-