Class ChildrenToParentAggregator
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.ChildrenToParentAggregator
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable,org.apache.lucene.search.Collector,Releasable,SingleBucketAggregator
public class ChildrenToParentAggregator extends ParentJoinAggregator
A
BucketsAggregator which resolves to the matching parent documents.-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.join.aggregations.ParentJoinAggregator
ParentJoinAggregator.CollectionStrategy, ParentJoinAggregator.DenseCollectionStrategy, ParentJoinAggregator.SparseCollectionStrategyNested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
BucketsAggregator.BucketBuilderForFixedCount<B extends java.lang.Object>, BucketsAggregator.BucketBuilderForVariable<B extends java.lang.Object>, BucketsAggregator.ResultBuilderForVariable<B extends java.lang.Object>, BucketsAggregator.SingleBucketResultBuilderNested 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 ChildrenToParentAggregator(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, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) -
Method Summary
Modifier and Type Method Description InternalAggregation[]buildAggregations(long[] owningBucketOrds)InternalAggregationbuildEmptyAggregation()Methods inherited from class org.elasticsearch.join.aggregations.ParentJoinAggregator
beforeBuildingBuckets, doClose, getLeafCollector, postCollectionMethods inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
bucketComparator, bucketDocCount, buildAggregationsForFixedBucketCount, buildAggregationsForSingleBucket, buildAggregationsForVariableBuckets, buildSubAggsForAllBuckets, buildSubAggsForBuckets, buildSubAggsForBuckets, close, collectBucket, collectExistingBucket, descendsFromGlobalAggregator, getDocCounts, grow, incrementBucketDocCount, maxBucketOrd, mergeBuckets, mergeBuckets, resolveSortPathMethods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, buildEmptySubAggregations, context, doPostCollection, doPreCollection, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, preCollection, preGetSubLeafCollectors, scoreMode, subAggregator, subAggregators, toStringMethods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAgg
-
Constructor Details
-
ChildrenToParentAggregator
public ChildrenToParentAggregator(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, CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Details
-
buildAggregations
- Specified by:
buildAggregationsin classAggregator- Throws:
java.io.IOException
-
buildEmptyAggregation
- Specified by:
buildEmptyAggregationin classAggregator
-