Class ParentToChildrenAggregator
java.lang.Object
org.elasticsearch.search.aggregations.BucketCollector
org.elasticsearch.search.aggregations.Aggregator
org.elasticsearch.search.aggregations.AggregatorBase
org.elasticsearch.search.aggregations.bucket.BucketsAggregator
org.elasticsearch.join.aggregations.ParentJoinAggregator
org.elasticsearch.join.aggregations.ParentToChildrenAggregator
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.search.Collector,Releasable,SingleBucketAggregator
public class ParentToChildrenAggregator extends ParentJoinAggregator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.Aggregator
Aggregator.BucketComparator, Aggregator.Parser, Aggregator.SubAggCollectionMode -
Field Summary
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, context, DEFAULT_WEIGHT, name, parent, subAggregators -
Constructor Summary
Constructors Constructor Description ParentToChildrenAggregator(java.lang.String name, AggregatorFactories factories, SearchContext context, Aggregator parent, org.apache.lucene.search.Query childFilter, org.apache.lucene.search.Query parentFilter, ValuesSource.Bytes.WithOrdinals valuesSource, long maxOrd, java.util.Map<java.lang.String,java.lang.Object> metadata) -
Method Summary
Modifier and Type Method Description InternalAggregationbuildAggregation(long owningBucketOrdinal)InternalAggregationbuildEmptyAggregation()Methods inherited from class org.elasticsearch.join.aggregations.ParentJoinAggregator
doClose, doPostCollection, getLeafCollectorMethods inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
bucketAggregations, bucketComparator, bucketDocCount, bucketEmptyAggregations, close, collectBucket, collectExistingBucket, consumeBucketsAndMaybeBreak, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd, mergeBuckets, resolveSortPathMethods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPreCollection, getLeafCollector, metadata, name, parent, postCollection, preCollection, preGetSubLeafCollectors, scoreMode, subAggregator, subAggregators, toStringMethods inherited from class org.elasticsearch.search.aggregations.Aggregator
descendsFromBucketAggregator, resolveSortPathOnValidAgg
-
Constructor Details
-
ParentToChildrenAggregator
public ParentToChildrenAggregator(java.lang.String name, AggregatorFactories factories, SearchContext context, Aggregator parent, org.apache.lucene.search.Query childFilter, org.apache.lucene.search.Query parentFilter, ValuesSource.Bytes.WithOrdinals valuesSource, long maxOrd, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
buildAggregation
- Specified by:
buildAggregationin classAggregator- Throws:
java.io.IOException
-
buildEmptyAggregation
- Specified by:
buildEmptyAggregationin classAggregator
-