public class SignificantTermsAggregatorFactory extends ValuesSourceAggregatorFactory<ValuesSource,SignificantTermsAggregatorFactory> implements Releasable
Modifier and Type | Class and Description |
---|---|
static class |
SignificantTermsAggregatorFactory.ExecutionMode |
AggregatorFactory.MultiBucketAggregatorWrapper
config
Constructor and Description |
---|
SignificantTermsAggregatorFactory(java.lang.String name,
InternalAggregation.Type type,
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, timeZone
asMultiBucketAggregator, create, doValidate, getParent, getType, name, validate
public SignificantTermsAggregatorFactory(java.lang.String name, InternalAggregation.Type type, 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.IOException
public long getSupersetNumDocs()
public long getBackgroundFrequency(org.apache.lucene.util.BytesRef termBytes) throws java.io.IOException
java.io.IOException
public long getBackgroundFrequency(long termNum) throws java.io.IOException
java.io.IOException
protected 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.IOException
protected 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.IOException
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface Releasable