org.elasticsearch.search.aggregations.bucket.SingleBucketAggregatorpublic class ParentToChildrenAggregator
extends org.elasticsearch.search.aggregations.bucket.BucketsAggregator
implements org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator
| Constructor | 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 | 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) |
descendsFromBucketAggregatoraddRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPreCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toStringbucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrdpublic 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