public class ParentToChildrenAggregator extends SingleBucketAggregator
Aggregator.Parser, Aggregator.SubAggCollectionMode
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators
NO_OP_COLLECTOR
Constructor and Description |
---|
ParentToChildrenAggregator(java.lang.String name,
AggregatorFactories factories,
SearchContext context,
Aggregator parent,
Query childFilter,
Query parentFilter,
ValuesSource.Bytes.WithOrdinals valuesSource,
long maxOrd,
java.util.List<PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
Modifier and Type | Method and Description |
---|---|
InternalAggregation |
buildAggregation(long owningBucketOrdinal) |
InternalAggregation |
buildEmptyAggregation() |
protected void |
doClose() |
protected void |
doPostCollection() |
LeafBucketCollector |
getLeafCollector(LeafReaderContext ctx,
LeafBucketCollector sub) |
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd
buildEmptySubAggregations, context, doPreCollection, getDeferringCollector, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, runDeferredCollections, shouldDefer, subAggregator, subAggregators, toString
descendsFromBucketAggregator
wrap
public ParentToChildrenAggregator(java.lang.String name, AggregatorFactories factories, SearchContext context, Aggregator parent, Query childFilter, Query parentFilter, ValuesSource.Bytes.WithOrdinals valuesSource, long maxOrd, java.util.List<PipelineAggregator> pipelineAggregators, java.util.Map<java.lang.String,java.lang.Object> metaData) throws java.io.IOException
java.io.IOException
public InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
buildAggregation
in class Aggregator
java.io.IOException
public InternalAggregation buildEmptyAggregation()
buildEmptyAggregation
in class Aggregator
public LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws java.io.IOException
getLeafCollector
in class AggregatorBase
java.io.IOException
protected void doPostCollection() throws java.io.IOException
doPostCollection
in class AggregatorBase
java.io.IOException
protected void doClose()
doClose
in class AggregatorBase