Class ValuesSourceAggregatorFactory
java.lang.Object
org.elasticsearch.search.aggregations.AggregatorFactory
org.elasticsearch.search.aggregations.support.ValuesSourceAggregatorFactory
- Direct Known Subclasses:
AbstractRangeAggregatorFactory
,AutoDateHistogramAggregatorFactory
,BinaryRangeAggregatorFactory
,DateHistogramAggregatorFactory
,DiversifiedAggregatorFactory
,GeoDistanceRangeAggregatorFactory
,GeoHashGridAggregatorFactory
,GeoTileGridAggregatorFactory
,HistogramAggregatorFactory
,MedianAbsoluteDeviationAggregatorFactory
,MissingAggregatorFactory
,RareTermsAggregatorFactory
,SignificantTermsAggregatorFactory
,TermsAggregatorFactory
,VariableWidthHistogramAggregatorFactory
public abstract class ValuesSourceAggregatorFactory extends AggregatorFactory
-
Field Summary
Fields Modifier and Type Field Description protected ValuesSourceConfig
config
-
Constructor Summary
Constructors Constructor Description ValuesSourceAggregatorFactory(java.lang.String name, ValuesSourceConfig config, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
Method Summary
Modifier and Type Method Description Aggregator
createInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)
protected abstract Aggregator
createUnmapped(Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata)
Create the Aggregator for aValuesSource
that doesn't have values.protected abstract Aggregator
doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)
Create the Aggregator for aValuesSource
that has values.java.lang.String
getStatsSubtype()
Returns the aggregation subtype for nodes usage stats.Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
create, doValidate, getParent, name
-
Field Details
-
Constructor Details
-
ValuesSourceAggregatorFactory
public ValuesSourceAggregatorFactory(java.lang.String name, ValuesSourceConfig config, AggregationContext context, AggregatorFactory parent, AggregatorFactories.Builder subFactoriesBuilder, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
createInternal
public Aggregator createInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Specified by:
createInternal
in classAggregatorFactory
- Throws:
java.io.IOException
-
createUnmapped
protected abstract Aggregator createUnmapped(Aggregator parent, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionCreate the Aggregator for aValuesSource
that doesn't have values.- Throws:
java.io.IOException
-
doCreateInternal
protected abstract Aggregator doCreateInternal(Aggregator parent, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOExceptionCreate the Aggregator for aValuesSource
that has values.- Parameters:
cardinality
- Upper bound of the number ofowningBucketOrd
s that theAggregator
created by this method will be asked to collect.- Throws:
java.io.IOException
-
getStatsSubtype
public java.lang.String getStatsSubtype()Description copied from class:AggregatorFactory
Returns the aggregation subtype for nodes usage stats.It should match the types registered by calling AggregationUsageService. In other words, it should be ValueSourcesType for the VST aggregations OTHER_SUBTYPE for all other aggregations.
- Overrides:
getStatsSubtype
in classAggregatorFactory
-