Class ScriptedMetricAggregatorFactory
- java.lang.Object
-
- org.elasticsearch.search.aggregations.AggregatorFactory<ScriptedMetricAggregatorFactory>
-
- org.elasticsearch.search.aggregations.metrics.scripted.ScriptedMetricAggregatorFactory
-
public class ScriptedMetricAggregatorFactory extends AggregatorFactory<ScriptedMetricAggregatorFactory>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
AggregatorFactory.MultiBucketAggregatorWrapper
-
-
Constructor Summary
Constructors Constructor Description ScriptedMetricAggregatorFactory(java.lang.String name, ScriptedMetricAggContexts.MapScript.Factory mapScript, java.util.Map<java.lang.String,java.lang.Object> mapScriptParams, ScriptedMetricAggContexts.InitScript.Factory initScript, java.util.Map<java.lang.String,java.lang.Object> initScriptParams, ScriptedMetricAggContexts.CombineScript.Factory combineScript, java.util.Map<java.lang.String,java.lang.Object> combineScriptParams, Script reduceScript, java.util.Map<java.lang.String,java.lang.Object> aggParams, SearchLookup lookup, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactories, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
Method Summary
Modifier and Type Method Description Aggregator
createInternal(Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData)
-
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorFactory
asMultiBucketAggregator, create, doValidate, getParent, name
-
-
-
-
Constructor Detail
-
ScriptedMetricAggregatorFactory
public ScriptedMetricAggregatorFactory(java.lang.String name, ScriptedMetricAggContexts.MapScript.Factory mapScript, java.util.Map<java.lang.String,java.lang.Object> mapScriptParams, ScriptedMetricAggContexts.InitScript.Factory initScript, java.util.Map<java.lang.String,java.lang.Object> initScriptParams, ScriptedMetricAggContexts.CombineScript.Factory combineScript, java.util.Map<java.lang.String,java.lang.Object> combineScriptParams, Script reduceScript, java.util.Map<java.lang.String,java.lang.Object> aggParams, SearchLookup lookup, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactories, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
createInternal
public Aggregator createInternal(Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
- Specified by:
createInternal
in classAggregatorFactory<ScriptedMetricAggregatorFactory>
- Throws:
java.io.IOException
-
-