Module org.elasticsearch.server
Class InternalGeoTileGrid
java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.InternalMultiBucketAggregation<InternalGeoGrid<B>,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 SummaryNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregationInternalMultiBucketAggregation.InternalBucketNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.AggregationAggregation.CommonFieldsNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridGeoGrid.BucketNested classes/interfaces inherited from interface org.elasticsearch.search.aggregations.bucket.MultiBucketsAggregationMultiBucketsAggregation.BucketNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContentToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.WriteableWriteable.Reader<V>, Writeable.Writer<V>
- 
Field SummaryFields inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.InternalGeoGridbuckets, requiredSizeFields inherited from class org.elasticsearch.search.aggregations.InternalAggregationmetadata, nameFields inherited from interface org.elasticsearch.search.aggregations.AggregationTYPED_KEYS_DELIMITERFields inherited from interface org.elasticsearch.xcontent.ToXContentEMPTY_PARAMS
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.InternalGeoGriddoWriteTo, doXContentBody, equals, finalizeSampling, getBuckets, hashCode, reduce, reduceBucketMethods inherited from class org.elasticsearch.search.aggregations.InternalMultiBucketAggregationcopyWithRewritenBuckets, countInnerBucket, countInnerBucket, forEachBucket, getProperty, mustReduceOnSingleInternalAgg, reducePipelinesMethods inherited from class org.elasticsearch.search.aggregations.InternalAggregationgetMetadata, getName, getProperty, getType, isMapped, readSize, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.search.aggregations.AggregationgetMetadata, getName, getTypeMethods inherited from interface org.elasticsearch.xcontent.ToXContenttoXContentMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragmentisFragment
- 
Constructor Details- 
InternalGeoTileGrid- Throws:
- IOException
 
 
- 
- 
Method Details- 
createDescription copied from class:InternalMultiBucketAggregationCreate a new copy of thisAggregationwith the same settings as thisAggregationand contains the provided buckets.- Specified by:
- createin class- InternalMultiBucketAggregation<InternalGeoGrid<InternalGeoTileGridBucket>,- InternalGeoGridBucket> 
- Parameters:
- buckets- the buckets to use in the new- Aggregation
- Returns:
- the new Aggregation
 
- 
createBucketpublic InternalGeoGridBucket createBucket(InternalAggregations aggregations, InternalGeoGridBucket prototype) Description copied from class:InternalMultiBucketAggregationCreate a newInternalMultiBucketAggregation.InternalBucketusing the provided prototype bucket and aggregations.- Specified by:
- createBucketin class- InternalMultiBucketAggregation<InternalGeoGrid<InternalGeoTileGridBucket>,- InternalGeoGridBucket> 
- Parameters:
- aggregations- the aggregations for the new bucket
- prototype- the bucket to use as a prototype
- Returns:
- the new bucket
 
- 
createprotected InternalGeoGrid<InternalGeoTileGridBucket> create(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) - Specified by:
- createin class- InternalGeoGrid<InternalGeoTileGridBucket>
 
- 
createBucketprotected InternalGeoTileGridBucket createBucket(long hashAsLong, long docCount, InternalAggregations aggregations) - Specified by:
- createBucketin class- InternalGeoGrid<InternalGeoTileGridBucket>
 
- 
getBucketReader- Specified by:
- getBucketReaderin class- InternalGeoGrid<InternalGeoTileGridBucket>
 
- 
getWriteableNameDescription copied from interface:NamedWriteableReturns the name of the writeable object
 
-