org.elasticsearch.search.aggregations.bucket.SingleBucketAggregator
public 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) |
descendsFromBucketAggregator
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPreCollection, getLeafCollector, metaData, name, needsScores, parent, pipelineAggregators, postCollection, preCollection, preGetSubLeafCollectors, subAggregator, subAggregators, toString
bucketAggregations, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd
public 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.IOException
public org.elasticsearch.search.aggregations.InternalAggregation buildAggregation(long owningBucketOrdinal) throws java.io.IOException
buildAggregation
in class org.elasticsearch.search.aggregations.Aggregator
java.io.IOException
public org.elasticsearch.search.aggregations.InternalAggregation buildEmptyAggregation()
buildEmptyAggregation
in class org.elasticsearch.search.aggregations.Aggregator
public 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.AggregatorBase
java.io.IOException
protected void doPostCollection() throws java.io.IOException
doPostCollection
in class org.elasticsearch.search.aggregations.AggregatorBase
java.io.IOException
protected void doClose()
doClose
in class org.elasticsearch.search.aggregations.AggregatorBase