public class FiltersAggregatorFactory extends AggregatorFactory<FiltersAggregatorFactory>
AggregatorFactory.MultiBucketAggregatorWrapper
Constructor and Description |
---|
FiltersAggregatorFactory(java.lang.String name,
java.util.List<FiltersAggregator.KeyedFilter> filters,
boolean keyed,
boolean otherBucket,
java.lang.String otherBucketKey,
SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactories,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
Aggregator |
createInternal(Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
org.apache.lucene.search.Weight[] |
getWeights()
Returns the
Weight s for this filter aggregation, creating it if
necessary. |
asMultiBucketAggregator, create, doValidate, getParent, name
public FiltersAggregatorFactory(java.lang.String name, java.util.List<FiltersAggregator.KeyedFilter> filters, boolean keyed, boolean otherBucket, java.lang.String otherBucketKey, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactories, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public org.apache.lucene.search.Weight[] getWeights()
Weight
s for this filter aggregation, creating it if
necessary. This is done lazily so that the Weight
s are only
created if the aggregation collects documents reducing the overhead of
the aggregation in the case where no documents are collected.
Note that as aggregations are initialsed and executed in a serial manner,
no concurrency considerations are necessary here.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
createInternal
in class AggregatorFactory<FiltersAggregatorFactory>
java.io.IOException