Interface Aggregation

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Aggregation.CommonFields
      Common xcontent fields that are shared among addAggregation
      • Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

        org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TYPED_KEYS_DELIMITER
      Delimiter used when prefixing aggregation names with their type using the typed_keys parameter
      • Fields inherited from interface org.opensearch.common.xcontent.ToXContent

        EMPTY_PARAMS
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​java.lang.Object> getMetadata()
      Get the optional byte array metadata that was set on the aggregation
      java.lang.String getName()  
      java.lang.String getType()  
      • Methods inherited from interface org.opensearch.common.xcontent.ToXContent

        toXContent
      • Methods inherited from interface org.opensearch.common.xcontent.ToXContentFragment

        isFragment
    • Field Detail

      • TYPED_KEYS_DELIMITER

        static final java.lang.String TYPED_KEYS_DELIMITER
        Delimiter used when prefixing aggregation names with their type using the typed_keys parameter
        See Also:
        Constant Field Values
    • Method Detail

      • getName

        java.lang.String getName()
        Returns:
        The name of this aggregation.
      • getType

        java.lang.String getType()
        Returns:
        a string representing the type of the aggregation. This type is added to the aggregation name in the response, so that it can later be used by clients to determine type of the aggregation and parse it into the proper object.
      • getMetadata

        java.util.Map<java.lang.String,​java.lang.Object> getMetadata()
        Get the optional byte array metadata that was set on the aggregation