Module org.elasticsearch.server
Class GeoTileGridAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.aggregations.AggregatorBase
org.elasticsearch.search.aggregations.bucket.BucketsAggregator
org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregator<InternalGeoTileGrid>
org.elasticsearch.search.aggregations.bucket.geogrid.GeoTileGridAggregator
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Releasable
Aggregates data expressed as geotile longs (for efficiency's sake) but formats results as geotile strings.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
BucketsAggregator.BucketBuilderForFixedCount<B>, BucketsAggregator.BucketBuilderForVariable<B>, BucketsAggregator.ResultBuilderForVariable<B>, BucketsAggregator.SingleBucketResultBuilder
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.BucketCollector
BucketCollector.BucketCollectorWrapper
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregator
bucketOrds, requiredSize, shardSize, valuesSource
Fields inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
docCountProvider
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, DEFAULT_WEIGHT, name, parent, subAggregators
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_BUCKET_COLLECTOR, NO_OP_COLLECTOR
-
Constructor Summary
ConstructorDescriptionGeoTileGridAggregator
(String name, AggregatorFactories factories, Function<LongConsumer, ValuesSource.Numeric> valuesSource, int requiredSize, int shardSize, AggregationContext context, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected InternalGeoTileGrid
buildAggregation
(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) Build an empty aggregation.protected InternalGeoGridBucket
This method is used to return a re-usable instance of the bucket when building the aggregation.Methods inherited from class org.elasticsearch.search.aggregations.bucket.geogrid.GeoGridAggregator
buildAggregations, doClose, getLeafCollector, scoreMode
Methods inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
bucketComparator, bucketDocCount, buildAggregationsForFixedBucketCount, buildAggregationsForSingleBucket, buildAggregationsForVariableBuckets, buildSubAggsForAllBuckets, buildSubAggsForBuckets, close, collectBucket, collectExistingBucket, descendsFromGlobalAggregator, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd, preGetSubLeafCollectors, prepareSubAggs, resolveSortPath, rewriteBuckets
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, bigArrays, buildEmptySubAggregations, doPostCollection, doPreCollection, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, releaseAggregations, searcher, subAggregator, subAggregators, topLevelQuery, toString
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAgg
Methods inherited from class org.elasticsearch.search.aggregations.BucketCollector
asCollector
-
Constructor Details
-
GeoTileGridAggregator
public GeoTileGridAggregator(String name, AggregatorFactories factories, Function<LongConsumer, ValuesSource.Numeric> valuesSource, int requiredSize, int shardSize, AggregationContext context, Aggregator parent, CardinalityUpperBound cardinality, Map<String, throws IOExceptionObject> metadata) - Throws:
IOException
-
-
Method Details
-
buildAggregation
protected InternalGeoTileGrid buildAggregation(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) - Specified by:
buildAggregation
in classGeoGridAggregator<InternalGeoTileGrid>
-
buildEmptyAggregation
Description copied from class:Aggregator
Build an empty aggregation.- Overrides:
buildEmptyAggregation
in classGeoGridAggregator<InternalGeoTileGrid>
-
newEmptyBucket
Description copied from class:GeoGridAggregator
This method is used to return a re-usable instance of the bucket when building the aggregation.- Specified by:
newEmptyBucket
in classGeoGridAggregator<InternalGeoTileGrid>
- Returns:
- a new
InternalGeoGridBucket
implementation with empty parameters
-