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:
Closeable
,AutoCloseable
,org.apache.lucene.search.Collector
,org.elasticsearch.core.Releasable
,SingleBucketAggregator
-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.join.aggregations.ParentJoinAggregator
ParentJoinAggregator.CollectionStrategy, ParentJoinAggregator.DenseCollectionStrategy, ParentJoinAggregator.SparseCollectionStrategy
Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.bucket.BucketsAggregator
BucketsAggregator.BucketBuilderForFixedCount<B extends Object>, BucketsAggregator.BucketBuilderForVariable<B extends Object>, BucketsAggregator.ResultBuilderForVariable<B extends Object>, BucketsAggregator.SingleBucketResultBuilder
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.bucket.BucketsAggregator
docCountProvider
Fields inherited from class org.elasticsearch.search.aggregations.AggregatorBase
collectableSubAggregators, DEFAULT_WEIGHT, name, parent, subAggregators
Fields inherited from class org.elasticsearch.search.aggregations.BucketCollector
NO_OP_COLLECTOR
-
Constructor Summary
ConstructorDescriptionParentToChildrenAggregator
(String name, AggregatorFactories factories, AggregationContext context, Aggregator parent, org.apache.lucene.search.Query childFilter, org.apache.lucene.search.Query parentFilter, ValuesSource.Bytes.WithOrdinals valuesSource, long maxOrd, CardinalityUpperBound cardinality, Map<String, Object> metadata) -
Method Summary
Methods inherited from class org.elasticsearch.join.aggregations.ParentJoinAggregator
doClose, getLeafCollector, postCollection, prepareSubAggs
Methods 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, preGetSubLeafCollectors, resolveSortPath, rewriteBuckets
Methods inherited from class org.elasticsearch.search.aggregations.AggregatorBase
addRequestCircuitBreakerBytes, bigArrays, buildEmptySubAggregations, doPostCollection, doPreCollection, getLeafCollector, metadata, name, parent, pointReaderIfAvailable, preCollection, scoreMode, searcher, subAggregator, subAggregators, topLevelQuery, toString
Methods inherited from class org.elasticsearch.search.aggregations.Aggregator
buildTopLevel, collectDebugInfo, resolveSortPathOnValidAgg
-
Constructor Details
-
ParentToChildrenAggregator
public ParentToChildrenAggregator(String name, AggregatorFactories factories, AggregationContext context, Aggregator parent, org.apache.lucene.search.Query childFilter, org.apache.lucene.search.Query parentFilter, ValuesSource.Bytes.WithOrdinals valuesSource, long maxOrd, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException- Throws:
IOException
-
-
Method Details
-
buildAggregations
- Specified by:
buildAggregations
in classAggregator
- Throws:
IOException
-
buildEmptyAggregation
- Specified by:
buildEmptyAggregation
in classAggregator
-