Class GeoHashGridAggregator
java.lang.Object
org.opensearch.search.aggregations.BucketCollector
org.opensearch.search.aggregations.Aggregator
org.opensearch.search.aggregations.AggregatorBase
org.opensearch.search.aggregations.bucket.BucketsAggregator
org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregator<InternalGeoHashGrid>
org.opensearch.geo.search.aggregations.bucket.geogrid.GeoHashGridAggregator
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.search.Collector,org.opensearch.common.lease.Releasable
Aggregates data expressed as GeoHash longs (for efficiency's sake) but formats results as Geohash strings.
- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.bucket.BucketsAggregator
BucketsAggregator.BucketBuilderForFixedCount<B>, BucketsAggregator.BucketBuilderForVariable<B>, BucketsAggregator.ResultBuilderForVariable<B>, BucketsAggregator.SingleBucketResultBuilderNested classes/interfaces inherited from class org.opensearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode -
Field Summary
Fields inherited from class org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregator
bucketOrds, requiredSize, shardSize, valuesSourceFields inherited from class org.opensearch.search.aggregations.bucket.BucketsAggregator
docCountProviderFields inherited from class org.opensearch.search.aggregations.AggregatorBase
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsFields inherited from class org.opensearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR -
Constructor Summary
ConstructorsConstructorDescriptionGeoHashGridAggregator(String name, AggregatorFactories factories, ValuesSource.Numeric valuesSource, int requiredSize, int shardSize, SearchContext aggregationContext, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected InternalGeoHashGridbuildAggregation(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) protected InternalGeoGridBucketThis method is used to return a re-usable instance of the bucket when building the aggregation.Methods inherited from class org.opensearch.geo.search.aggregations.bucket.geogrid.GeoGridAggregator
buildAggregations, doClose, getLeafCollector, scoreModeMethods inherited from class org.opensearch.search.aggregations.bucket.BucketsAggregator
beforeBuildingBuckets, bucketComparator, bucketDocCount, buildAggregationsForFixedBucketCount, buildAggregationsForSingleBucket, buildAggregationsForVariableBuckets, buildSubAggsForAllBuckets, buildSubAggsForBuckets, buildSubAggsForBuckets, close, collectBucket, collectExistingBucket, descendsFromGlobalAggregator, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd, mergeBuckets, mergeBuckets, preGetSubLeafCollectors, resolveSortPathMethods inherited from class org.opensearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPostCollection, doPreCollection, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, subAggregator, subAggregators, toStringMethods inherited from class org.opensearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAggMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.lucene.search.Collector
setWeight
-
Constructor Details
-
GeoHashGridAggregator
public GeoHashGridAggregator(String name, AggregatorFactories factories, ValuesSource.Numeric valuesSource, int requiredSize, int shardSize, SearchContext aggregationContext, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException- Throws:
IOException
-
-
Method Details
-
buildAggregation
protected InternalGeoHashGrid buildAggregation(String name, int requiredSize, List<InternalGeoGridBucket> buckets, Map<String, Object> metadata) - Specified by:
buildAggregationin classGeoGridAggregator<InternalGeoHashGrid>
-
buildEmptyAggregation
- Overrides:
buildEmptyAggregationin classGeoGridAggregator<InternalGeoHashGrid>
-
newEmptyBucket
Description copied from class:GeoGridAggregatorThis method is used to return a re-usable instance of the bucket when building the aggregation.- Specified by:
newEmptyBucketin classGeoGridAggregator<InternalGeoHashGrid>- Returns:
- a new
InternalGeoGridBucketimplementation with empty parameters
-