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.ReduceContextBuilder

    Nested classes/interfaces inherited from interface org.opensearch.search.aggregations.Aggregation

    org.opensearch.search.aggregations.Aggregation.CommonFields

    Nested 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.Params

    Nested 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, name

    Fields inherited from interface org.opensearch.search.aggregations.Aggregation

    TYPED_KEYS_DELIMITER

    Fields inherited from interface org.opensearch.core.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    InternalAggCardinality(String name, org.opensearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opensearch.search.aggregations.CardinalityUpperBound
     
    protected void
    doWriteTo(org.opensearch.core.common.io.stream.StreamOutput out)
     
    org.opensearch.core.xcontent.XContentBuilder
    doXContentBody(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params)
     
     
     
    protected boolean
     
    org.opensearch.search.aggregations.InternalAggregation
    reduce(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, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.opensearch.core.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • InternalAggCardinality

      protected InternalAggCardinality(String name, org.opensearch.search.aggregations.CardinalityUpperBound cardinality, Map<String,Object> metadata)
  • 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:
      reduce in class org.opensearch.search.aggregations.InternalAggregation
    • mustReduceOnSingleInternalAgg

      protected boolean mustReduceOnSingleInternalAgg()
      Specified by:
      mustReduceOnSingleInternalAgg in class org.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:
      doXContentBody in class org.opensearch.search.aggregations.InternalAggregation
      Throws:
      IOException
    • getProperty

      public Object getProperty(List<String> path)
      Specified by:
      getProperty in class org.opensearch.search.aggregations.InternalAggregation
    • getWriteableName

      public String getWriteableName()
    • doWriteTo

      protected void doWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) throws IOException
      Specified by:
      doWriteTo in class org.opensearch.search.aggregations.InternalAggregation
      Throws:
      IOException