Class ParsedAggregation

    • Field Detail

      • metadata

        protected java.util.Map<java.lang.String,​java.lang.Object> metadata
    • Constructor Detail

      • ParsedAggregation

        public ParsedAggregation()
    • Method Detail

      • declareAggregationFields

        protected static void declareAggregationFields​(ObjectParser<? extends ParsedAggregation,​java.lang.Void> objectParser)
      • getName

        public final java.lang.String getName()
        Specified by:
        getName in interface Aggregation
        The name of this aggregation.
      • setName

        protected void setName​(java.lang.String name)
      • getMetaData

        public final java.util.Map<java.lang.String,​java.lang.Object> getMetaData()
        Description copied from interface: Aggregation
        Get the optional byte array metadata that was set on the aggregation
        Specified by:
        getMetaData in interface Aggregation
      • parseDouble

        protected static double parseDouble​(XContentParser parser,
                                            double defaultNullValue)
        Parse a token of type XContentParser.Token.VALUE_NUMBER or XContentParser.Token.STRING to a double. In other cases the default value is returned instead.