java.io.Closeable, java.lang.AutoCloseable, Releasablepublic class SignificantTermsAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource,SignificantTermsAggregatorFactory> implements Releasable
| Modifier and Type | Class | Description |
|---|---|---|
static class |
SignificantTermsAggregatorFactory.ExecutionMode |
AggregatorFactory.MultiBucketAggregatorWrappercontext, factories, metaData, name, parentconfig| Constructor | 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 | 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(long termNum) |
|
long |
getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) |
|
long |
getSupersetNumDocs() |
Get the number of docs in the superset.
|
asMultiBucketAggregator, create, doValidate, getParent, nameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateInternal, timeZonepublic 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.lang.AutoCloseableclose in interface java.io.Closeableclose in interface Releasable