public class ParentToChildrenAggregator extends SingleBucketAggregator
Aggregator.Parser, Aggregator.SubAggCollectionModecollectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregatorsNO_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, maxBucketOrdbuildEmptySubAggregations, context, doPreCollection, getDeferringCollector, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, runDeferredCollections, shouldDefer, subAggregator, subAggregators, toStringdescendsFromBucketAggregatorwrappublic 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.IOExceptionpublic InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
buildAggregation in class Aggregatorjava.io.IOExceptionpublic InternalAggregation buildEmptyAggregation()
buildEmptyAggregation in class Aggregatorpublic LeafBucketCollector getLeafCollector(LeafReaderContext ctx, LeafBucketCollector sub) throws java.io.IOException
getLeafCollector in class AggregatorBasejava.io.IOExceptionprotected void doPostCollection()
throws java.io.IOException
doPostCollection in class AggregatorBasejava.io.IOExceptionprotected void doClose()
doClose in class AggregatorBase