Class AbstractGeoBoundsAggregator<T extends ValuesSource>
java.lang.Object
org.opensearch.search.aggregations.BucketCollector
org.opensearch.search.aggregations.Aggregator
org.opensearch.search.aggregations.AggregatorBase
org.opensearch.search.aggregations.metrics.MetricsAggregator
org.opensearch.geo.search.aggregations.metrics.AbstractGeoBoundsAggregator<T>
- Type Parameters:
T- Class extending theValuesSourcewhich will provide the data on which aggregation will happen.
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.lucene.search.Collector,Releasable
Abstract class for doing the
GeoBounds Aggregation over fields of type geo_shape and geo_point.- Opensearch.internal:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DoubleArrayprotected DoubleArrayprotected DoubleArrayprotected DoubleArrayprotected DoubleArrayprotected DoubleArrayprotected final Tprotected final booleanFields 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
ConstructorsModifierConstructorDescriptionprotectedAbstractGeoBoundsAggregator(String name, SearchContext searchContext, Aggregator aggregator, ValuesSourceConfig valuesSourceConfig, boolean wrapLongitude, Map<String, Object> metaData) -
Method Summary
Modifier and TypeMethodDescriptionbuildAggregation(long owningBucketOrdinal) Build an aggregation for data that has been collected into owningBucketOrd.Build an empty aggregation.voiddoClose()protected voidsetBucketSize(long bucket, BigArrays bigArrays) Methods inherited from class org.opensearch.search.aggregations.metrics.MetricsAggregator
buildAggregationsMethods inherited from class org.opensearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, buildEmptySubAggregations, close, context, doPostCollection, doPreCollection, getLeafCollector, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, postCollection, preCollection, preGetSubLeafCollectors, scoreMode, subAggregator, subAggregators, toStringMethods inherited from class org.opensearch.search.aggregations.Aggregator
bucketComparator, buildTopLevel, collectDebugInfo, resolveSortPath, 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
-
Field Details
-
valuesSource
-
wrapLongitude
protected final boolean wrapLongitude -
tops
-
bottoms
-
posLefts
-
posRights
-
negLefts
-
negRights
-
-
Constructor Details
-
AbstractGeoBoundsAggregator
protected AbstractGeoBoundsAggregator(String name, SearchContext searchContext, Aggregator aggregator, ValuesSourceConfig valuesSourceConfig, boolean wrapLongitude, Map<String, Object> metaData) throws IOException- Throws:
IOException
-
-
Method Details
-
buildEmptyAggregation
Build an empty aggregation.- Specified by:
buildEmptyAggregationin classAggregator
-
buildAggregation
Build an aggregation for data that has been collected into owningBucketOrd.- Specified by:
buildAggregationin classMetricsAggregator- Throws:
IOException
-
doClose
public void doClose()- Overrides:
doClosein classAggregatorBase
-
setBucketSize
-