public class ParentToChildrenAggregator
extends org.elasticsearch.search.aggregations.bucket.BucketsAggregator
implements org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator
| Constructor and Description |
|---|
ParentToChildrenAggregator(java.lang.String name,
org.elasticsearch.search.aggregations.AggregatorFactories factories,
org.elasticsearch.search.internal.SearchContext context,
org.elasticsearch.search.aggregations.Aggregator parent,
org.apache.lucene.search.Query childFilter,
org.apache.lucene.search.Query parentFilter,
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals valuesSource,
long maxOrd,
java.util.List<org.elasticsearch.search.aggregations.pipeline.PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData) |
| Modifier and Type | Method and Description |
|---|---|
org.elasticsearch.search.aggregations.InternalAggregation |
buildAggregation(long owningBucketOrdinal) |
org.elasticsearch.search.aggregations.InternalAggregation |
buildEmptyAggregation() |
protected void |
doClose() |
protected void |
doPostCollection() |
org.elasticsearch.search.aggregations.LeafBucketCollector |
getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx,
org.elasticsearch.search.aggregations.LeafBucketCollector sub) |
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, getDocCounts, grow, incrementBucketDocCount, maxBucketOrdaddRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPreCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toStringdescendsFromBucketAggregatorpublic ParentToChildrenAggregator(java.lang.String name,
org.elasticsearch.search.aggregations.AggregatorFactories factories,
org.elasticsearch.search.internal.SearchContext context,
org.elasticsearch.search.aggregations.Aggregator parent,
org.apache.lucene.search.Query childFilter,
org.apache.lucene.search.Query parentFilter,
org.elasticsearch.search.aggregations.support.ValuesSource.Bytes.WithOrdinals valuesSource,
long maxOrd,
java.util.List<org.elasticsearch.search.aggregations.pipeline.PipelineAggregator> pipelineAggregators,
java.util.Map<java.lang.String,java.lang.Object> metaData)
throws java.io.IOException
java.io.IOExceptionpublic org.elasticsearch.search.aggregations.InternalAggregation buildAggregation(long owningBucketOrdinal)
throws java.io.IOException
buildAggregation in class org.elasticsearch.search.aggregations.Aggregatorjava.io.IOExceptionpublic org.elasticsearch.search.aggregations.InternalAggregation buildEmptyAggregation()
buildEmptyAggregation in class org.elasticsearch.search.aggregations.Aggregatorpublic org.elasticsearch.search.aggregations.LeafBucketCollector getLeafCollector(org.apache.lucene.index.LeafReaderContext ctx,
org.elasticsearch.search.aggregations.LeafBucketCollector sub)
throws java.io.IOException
getLeafCollector in class org.elasticsearch.search.aggregations.AggregatorBasejava.io.IOExceptionprotected void doPostCollection()
throws java.io.IOException
doPostCollection in class org.elasticsearch.search.aggregations.AggregatorBasejava.io.IOExceptionprotected void doClose()
doClose in class org.elasticsearch.search.aggregations.AggregatorBase