public class SignificantTermsAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource> implements Releasable
Modifier and Type | Class and Description |
---|---|
static class |
SignificantTermsAggregatorFactory.ExecutionMode |
ValuesSourceAggregatorFactory.LeafOnly<VS extends ValuesSource>
config
Constructor and Description |
---|
SignificantTermsAggregatorFactory(String name,
ValuesSourceConfig valueSourceConfig,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
IncludeExclude includeExclude,
String executionHint,
org.apache.lucene.search.Query filter,
SignificanceHeuristic significanceHeuristic) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected Aggregator |
createUnmapped(AggregationContext aggregationContext,
Aggregator parent,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
protected Aggregator |
doCreateInternal(ValuesSource valuesSource,
AggregationContext aggregationContext,
Aggregator parent,
boolean collectsFromSingleBucket,
List<PipelineAggregator> pipelineAggregators,
Map<String,Object> metaData) |
long |
getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) |
long |
getBackgroundFrequency(long term) |
protected TermsAggregator.BucketCountThresholds |
getBucketCountThresholds() |
SignificanceHeuristic |
getSignificanceHeuristic() |
long |
prepareBackground(AggregationContext context)
Creates the TermsEnum (if not already created) and must be called before any calls to getBackgroundFrequency
|
createInternal, doValidate
asMultiBucketAggregator, create, name, parent, setMetaData, subFactories, validate
public SignificantTermsAggregatorFactory(String name, ValuesSourceConfig valueSourceConfig, TermsAggregator.BucketCountThresholds bucketCountThresholds, IncludeExclude includeExclude, String executionHint, org.apache.lucene.search.Query filter, SignificanceHeuristic significanceHeuristic)
public SignificanceHeuristic getSignificanceHeuristic()
protected TermsAggregator.BucketCountThresholds getBucketCountThresholds()
protected Aggregator createUnmapped(AggregationContext aggregationContext, Aggregator parent, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
createUnmapped
in class ValuesSourceAggregatorFactory<ValuesSource>
IOException
protected Aggregator doCreateInternal(ValuesSource valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
doCreateInternal
in class ValuesSourceAggregatorFactory<ValuesSource>
IOException
public long prepareBackground(AggregationContext context)
context
- The aggregation contextpublic long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes)
public long getBackgroundFrequency(long term)
public void close()
close
in interface AutoCloseable
close
in interface Releasable
Copyright © 2009–2017. All rights reserved.