Class AggregatorTestCase.InternalAggCardinality

java.lang.Object
org.elasticsearch.search.aggregations.InternalAggregation
org.elasticsearch.search.aggregations.AggregatorTestCase.InternalAggCardinality
All Implemented Interfaces:
org.elasticsearch.common.io.stream.NamedWriteable, org.elasticsearch.common.io.stream.Writeable, org.elasticsearch.common.xcontent.ToXContent, org.elasticsearch.common.xcontent.ToXContentFragment, org.elasticsearch.search.aggregations.Aggregation
Enclosing class:
AggregatorTestCase

public static class AggregatorTestCase.InternalAggCardinality
extends org.elasticsearch.search.aggregations.InternalAggregation
  • Nested Class Summary

    Nested classes/interfaces inherited from class org.elasticsearch.search.aggregations.InternalAggregation

    org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContextBuilder

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

    org.elasticsearch.search.aggregations.Aggregation.CommonFields

    Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent

    org.elasticsearch.common.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.common.xcontent.ToXContent.MapParams, org.elasticsearch.common.xcontent.ToXContent.Params

    Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable

    org.elasticsearch.common.io.stream.Writeable.Reader<V extends java.lang.Object>, org.elasticsearch.common.io.stream.Writeable.Writer<V extends java.lang.Object>
  • Field Summary

    Fields inherited from class org.elasticsearch.search.aggregations.InternalAggregation

    metadata, name

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

    TYPED_KEYS_DELIMITER

    Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

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

    Modifier and Type Method Description
    org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality()  
    protected void doWriteTo​(org.elasticsearch.common.io.stream.StreamOutput out)  
    org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)  
    java.lang.Object getProperty​(java.util.List<java.lang.String> path)  
    java.lang.String getWriteableName()  
    protected boolean mustReduceOnSingleInternalAgg()  
    org.elasticsearch.search.aggregations.InternalAggregation reduce​(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)  

    Methods inherited from class org.elasticsearch.search.aggregations.InternalAggregation

    copyWithRewritenBuckets, equals, forEachBucket, getMetadata, getName, getProperty, getType, hashCode, isMapped, mergePipelineTreeForBWCSerialization, pipelineAggregatorsForBwcSerialization, 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.elasticsearch.common.xcontent.ToXContentFragment

    isFragment
  • Constructor Details

    • InternalAggCardinality

      protected InternalAggCardinality​(java.lang.String name, org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality, java.util.Map<java.lang.String,​java.lang.Object> metadata)
  • Method Details

    • cardinality

      public org.elasticsearch.search.aggregations.CardinalityUpperBound cardinality()
    • reduce

      public org.elasticsearch.search.aggregations.InternalAggregation reduce​(java.util.List<org.elasticsearch.search.aggregations.InternalAggregation> aggregations, org.elasticsearch.search.aggregations.InternalAggregation.ReduceContext reduceContext)
      Specified by:
      reduce in class org.elasticsearch.search.aggregations.InternalAggregation
    • mustReduceOnSingleInternalAgg

      protected boolean mustReduceOnSingleInternalAgg()
      Specified by:
      mustReduceOnSingleInternalAgg in class org.elasticsearch.search.aggregations.InternalAggregation
    • doXContentBody

      public org.elasticsearch.common.xcontent.XContentBuilder doXContentBody​(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      Specified by:
      doXContentBody in class org.elasticsearch.search.aggregations.InternalAggregation
      Throws:
      java.io.IOException
    • getProperty

      public java.lang.Object getProperty​(java.util.List<java.lang.String> path)
      Specified by:
      getProperty in class org.elasticsearch.search.aggregations.InternalAggregation
    • getWriteableName

      public java.lang.String getWriteableName()
    • doWriteTo

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