Class GeoDistanceRangeAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
org.elasticsearch.search.aggregations.bucket.range.GeoDistanceRangeAggregatorFactory
-
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
config
-
Constructor Summary
ConstructorDescriptionGeoDistanceRangeAggregatorFactory
(String name, ValuesSourceConfig config, GeoPoint origin, GeoDistanceAggregationBuilder.Range[] ranges, DistanceUnit unit, GeoDistance distanceType, boolean keyed, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, Object> metadata, GeoDistanceAggregatorSupplier aggregatorSupplier) -
Method Summary
Modifier and TypeMethodDescriptionprotected Aggregator
createUnmapped
(Aggregator parent, Map<String, Object> metadata) Create the Aggregator for aValuesSource
that doesn't have values.protected Aggregator
doCreateInternal
(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) Create the Aggregator for aValuesSource
that has values.static void
Methods inherited from class org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
createInternal, getStatsSubtype
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, name
-
Constructor Details
-
GeoDistanceRangeAggregatorFactory
public GeoDistanceRangeAggregatorFactory(String name, ValuesSourceConfig config, GeoPoint origin, GeoDistanceAggregationBuilder.Range[] ranges, DistanceUnit unit, GeoDistance distanceType, boolean keyed, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, Map<String, Object> metadata, GeoDistanceAggregatorSupplier aggregatorSupplier) throws IOException- Throws:
IOException
-
-
Method Details
-
registerAggregators
-
createUnmapped
protected Aggregator createUnmapped(Aggregator parent, Map<String, Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactory
Create the Aggregator for aValuesSource
that doesn't have values.- Specified by:
createUnmapped
in classValuesSourceAggregatorFactory
- Throws:
IOException
-
doCreateInternal
protected Aggregator doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOExceptionDescription copied from class:ValuesSourceAggregatorFactory
Create the Aggregator for aValuesSource
that has values.- Specified by:
doCreateInternal
in classValuesSourceAggregatorFactory
cardinality
- Upper bound of the number ofowningBucketOrd
s that theAggregator
created by this method will be asked to collect.- Throws:
IOException
-