public class TopHitsAggregatorFactory extends AggregatorFactory<TopHitsAggregatorFactory>
AggregatorFactory.MultiBucketAggregatorWrapper
Constructor and Description |
---|
TopHitsAggregatorFactory(java.lang.String name,
int from,
int size,
boolean explain,
boolean version,
boolean trackScores,
java.util.Optional<SortAndFormats> sort,
HighlightBuilder highlightBuilder,
StoredFieldsContext storedFieldsContext,
java.util.List<java.lang.String> docValueFields,
java.util.List<ScriptFieldsContext.ScriptField> scriptFields,
FetchSourceContext fetchSourceContext,
SearchContext context,
AggregatorFactory<?> parent,
AggregatorFactories.Builder subFactories,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
Aggregator |
createInternal(Aggregator parent,
boolean collectsFromSingleBucket,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
asMultiBucketAggregator, create, doValidate, getParent, name, validate
public TopHitsAggregatorFactory(java.lang.String name, int from, int size, boolean explain, boolean version, boolean trackScores, java.util.Optional<SortAndFormats> sort, HighlightBuilder highlightBuilder, StoredFieldsContext storedFieldsContext, java.util.List<java.lang.String> docValueFields, java.util.List<ScriptFieldsContext.ScriptField> scriptFields, FetchSourceContext fetchSourceContext, SearchContext context, AggregatorFactory<?> parent, AggregatorFactories.Builder subFactories, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public Aggregator createInternal(Aggregator parent, boolean collectsFromSingleBucket, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
createInternal
in class AggregatorFactory<TopHitsAggregatorFactory>
java.io.IOException