public class SignificantTermsAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource,SignificantTermsAggregatorFactory> implements Releasable
| Modifier and Type | Class and Description |
|---|---|
static class |
SignificantTermsAggregatorFactory.ExecutionMode |
AggregatorFactory.MultiBucketAggregatorWrapperconfig| Constructor and Description |
|---|
SignificantTermsAggregatorFactory(java.lang.String name,
ValuesSourceConfig<ValuesSource> config,
IncludeExclude includeExclude,
java.lang.String executionHint,
QueryBuilder filterBuilder,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
SignificanceHeuristic significanceHeuristic,
SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected Aggregator |
createUnmapped(Aggregator parent,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
protected Aggregator |
doCreateInternal(ValuesSource valuesSource,
Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
long |
getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) |
long |
getBackgroundFrequency(long termNum) |
long |
getSupersetNumDocs()
Get the number of docs in the superset.
|
createInternal, timeZoneasMultiBucketAggregator, create, doValidate, getParent, namepublic SignificantTermsAggregatorFactory(java.lang.String name,
ValuesSourceConfig<ValuesSource> config,
IncludeExclude includeExclude,
java.lang.String executionHint,
QueryBuilder filterBuilder,
TermsAggregator.BucketCountThresholds bucketCountThresholds,
SignificanceHeuristic significanceHeuristic,
SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactoriesBuilder,
java.util.Map<java.lang.String,java.lang.Object> metaData)
throws java.io.IOException
java.io.IOExceptionpublic long getSupersetNumDocs()
public long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes)
throws java.io.IOException
java.io.IOExceptionpublic long getBackgroundFrequency(long termNum)
throws java.io.IOException
java.io.IOExceptionprotected Aggregator createUnmapped(Aggregator parent, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createUnmapped in class ValuesSourceAggregatorFactory<ValuesSource,SignificantTermsAggregatorFactory>java.io.IOExceptionprotected Aggregator doCreateInternal(ValuesSource valuesSource, Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
doCreateInternal in class ValuesSourceAggregatorFactory<ValuesSource,SignificantTermsAggregatorFactory>java.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface Releasable