com.groupbyinc.flux.search.aggregations.metrics.stats.ParsedStats.class Maven / Gradle / Ivy
???? 4P Acom/groupbyinc/flux/search/aggregations/metrics/stats/ParsedStats 9com/groupbyinc/flux/search/aggregations/ParsedAggregation ;com/groupbyinc/flux/search/aggregations/metrics/stats/Stats ParsedStats.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent
Params Jcom/groupbyinc/flux/search/aggregations/metrics/stats/InternalStats$Fields
Ccom/groupbyinc/flux/search/aggregations/metrics/stats/InternalStats Fields :com/groupbyinc/flux/common/xcontent/ObjectParser$ValueType 0com/groupbyinc/flux/common/xcontent/ObjectParser ValueType %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup count J min D max sum avg
valueAsString Ljava/util/Map; 5Ljava/util/Map; PARSER 2Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ()V ) *
+ java/util/HashMap -
. + # $ 0 this CLcom/groupbyinc/flux/search/aggregations/metrics/stats/ParsedStats; getCount ()J 6 getMin ()D : getMax = getAvg " @ getSum ! C getMinAsString ()Ljava/lang/String;
min_as_string G java/lang/Double I toString (D)Ljava/lang/String; K L
J M
java/util/Map O getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; Q R P S java/lang/String U getMaxAsString
max_as_string X getAvgAsString
avg_as_string [ getSumAsString
sum_as_string ^ getType stats a doXContentBody ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; java/io/IOException e 3com/groupbyinc/flux/common/xcontent/XContentBuilder h field J(Ljava/lang/String;J)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; j k
i l J(Ljava/lang/String;D)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; j o
i p " ! get &(Ljava/lang/Object;)Ljava/lang/Object; u v P w E F
y [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; j {
i | W F
~ Z F
? ] F
? nullField I(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
i ? otherStatsToXContent ? d
? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; declareStatsFields 5(Lcom/groupbyinc/flux/common/xcontent/ObjectParser;)V declareAggregationFields ? ?
? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? '(Ljava/lang/Object;Ljava/lang/Object;)V ? lambda$declareStatsFields$0 V(Lcom/groupbyinc/flux/search/aggregations/metrics/stats/ParsedStats;Ljava/lang/Long;)V ? ?
? ? ? accept !()Ljava/util/function/BiConsumer; ? ? ? %com/groupbyinc/flux/common/ParseField ? ((Ljava/lang/String;[Ljava/lang/String;)V ) ?
? ? declareLong I(Ljava/util/function/BiConsumer;Lcom/groupbyinc/flux/common/ParseField;)V ? ?
? lambda$declareStatsFields$1 X(Lcom/groupbyinc/flux/search/aggregations/metrics/stats/ParsedStats;Ljava/lang/Double;)V ? ?
? ? ? ? Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Object;)Ljava/lang/Object; ? lambda$declareStatsFields$2 X(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Void;)Ljava/lang/Double; ? ?
? ? ? parse 5()Lcom/groupbyinc/flux/common/xcontent/ContextParser; ? ? ? DOUBLE_OR_NULL