Class AggregatorTestCase.InternalAggCardinality
java.lang.Object
org.opensearch.search.aggregations.InternalAggregation
org.opensearch.search.aggregations.AggregatorTestCase.InternalAggCardinality
- All Implemented Interfaces:
org.opensearch.common.io.stream.NamedWriteable,org.opensearch.common.io.stream.Writeable,org.opensearch.common.xcontent.ToXContent,org.opensearch.common.xcontent.ToXContentFragment,org.opensearch.search.aggregations.Aggregation
- Enclosing class:
- AggregatorTestCase
public static class AggregatorTestCase.InternalAggCardinality
extends org.opensearch.search.aggregations.InternalAggregation
-
Nested Class Summary
Nested classes/interfaces inherited from class org.opensearch.search.aggregations.InternalAggregation
org.opensearch.search.aggregations.InternalAggregation.ReduceContext, org.opensearch.search.aggregations.InternalAggregation.ReduceContextBuilderNested classes/interfaces inherited from interface org.opensearch.search.aggregations.Aggregation
org.opensearch.search.aggregations.Aggregation.CommonFields -
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protectedInternalAggCardinality(java.lang.String name, org.opensearch.search.aggregations.CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata) -
Method Summary
Modifier and Type Method Description org.opensearch.search.aggregations.CardinalityUpperBoundcardinality()protected voiddoWriteTo(org.opensearch.common.io.stream.StreamOutput out)org.opensearch.common.xcontent.XContentBuilderdoXContentBody(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)java.lang.ObjectgetProperty(java.util.List<java.lang.String> path)java.lang.StringgetWriteableName()protected booleanmustReduceOnSingleInternalAgg()org.opensearch.search.aggregations.InternalAggregationreduce(java.util.List<org.opensearch.search.aggregations.InternalAggregation> aggregations, org.opensearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)Methods inherited from class org.opensearch.search.aggregations.InternalAggregation
copyWithRewritenBuckets, equals, forEachBucket, getMetadata, getName, getProperty, getType, hashCode, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, readSize, reducePipelines, sortValue, sortValue, toString, toXContent, writeSize, writeTo
-
Constructor Details
-
InternalAggCardinality
protected InternalAggCardinality(java.lang.String name, org.opensearch.search.aggregations.CardinalityUpperBound cardinality, java.util.Map<java.lang.String,java.lang.Object> metadata)
-
-
Method Details
-
cardinality
public org.opensearch.search.aggregations.CardinalityUpperBound cardinality() -
reduce
public org.opensearch.search.aggregations.InternalAggregation reduce(java.util.List<org.opensearch.search.aggregations.InternalAggregation> aggregations, org.opensearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)- Specified by:
reducein classorg.opensearch.search.aggregations.InternalAggregation
-
mustReduceOnSingleInternalAgg
protected boolean mustReduceOnSingleInternalAgg()- Specified by:
mustReduceOnSingleInternalAggin classorg.opensearch.search.aggregations.InternalAggregation
-
doXContentBody
public org.opensearch.common.xcontent.XContentBuilder doXContentBody(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentBodyin classorg.opensearch.search.aggregations.InternalAggregation- Throws:
java.io.IOException
-
getProperty
public java.lang.Object getProperty(java.util.List<java.lang.String> path)- Specified by:
getPropertyin classorg.opensearch.search.aggregations.InternalAggregation
-
getWriteableName
public java.lang.String getWriteableName() -
doWriteTo
protected void doWriteTo(org.opensearch.common.io.stream.StreamOutput out) throws java.io.IOException- Specified by:
doWriteToin classorg.opensearch.search.aggregations.InternalAggregation- Throws:
java.io.IOException
-