Class AggregatorTestCase.InternalAggCardinality
java.lang.Object
org.opensearch.search.aggregations.InternalAggregation
org.opensearch.search.aggregations.AggregatorTestCase.InternalAggCardinality
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.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.CommonFieldsNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
Fields inherited from class org.opensearch.search.aggregations.InternalAggregation
metadata, nameFields inherited from interface org.opensearch.search.aggregations.Aggregation
TYPED_KEYS_DELIMITERFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInternalAggCardinality(String name, org.opensearch.search.aggregations.CardinalityUpperBound cardinality, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionorg.opensearch.search.aggregations.CardinalityUpperBoundprotected voiddoWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) org.opensearch.core.xcontent.XContentBuilderdoXContentBody(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) getProperty(List<String> path) protected booleanorg.opensearch.search.aggregations.InternalAggregationreduce(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, readSize, reducePipelines, sortValue, sortValue, toString, toXContent, writeSize, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentFragment
isFragment
-
Constructor Details
-
InternalAggCardinality
-
-
Method Details
-
cardinality
public org.opensearch.search.aggregations.CardinalityUpperBound cardinality() -
reduce
public org.opensearch.search.aggregations.InternalAggregation reduce(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.core.xcontent.XContentBuilder doXContentBody(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
doXContentBodyin classorg.opensearch.search.aggregations.InternalAggregation- Throws:
IOException
-
getProperty
-
getWriteableName
-
doWriteTo
- Specified by:
doWriteToin classorg.opensearch.search.aggregations.InternalAggregation- Throws:
IOException
-