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, doValidateasMultiBucketAggregator, create, name, parent, setMetaData, subFactories, validatepublic 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>IOExceptionprotected Aggregator doCreateInternal(ValuesSource valuesSource, AggregationContext aggregationContext, Aggregator parent, boolean collectsFromSingleBucket, List<PipelineAggregator> pipelineAggregators, Map<String,Object> metaData) throws IOException
doCreateInternal in class ValuesSourceAggregatorFactory<ValuesSource>IOExceptionpublic 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 AutoCloseableclose in interface ReleasableCopyright © 2009–2017. All rights reserved.