
com.groupbyinc.flux.search.aggregations.pipeline.serialdiff.SerialDiffPipelineAggregator.class Maven / Gradle / Ivy
???? 3- Xcom/groupbyinc/flux/search/aggregations/pipeline/serialdiff/SerialDiffPipelineAggregator Ccom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregator !SerialDiffPipelineAggregator.java `com/groupbyinc/flux/search/aggregations/pipeline/serialdiff/SerialDiffPipelineAggregator$Factory Factory Zcom/groupbyinc/flux/search/aggregations/pipeline/serialdiff/SerialDiffPipelineAggregator$1 @com/groupbyinc/flux/search/aggregations/InternalAggregation$Type ;com/groupbyinc/flux/search/aggregations/InternalAggregation
Type Qcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorStreams$Stream Jcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorStreams Stream Hcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy >com/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers GapPolicy Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext
ReduceContext Qcom/groupbyinc/flux/search/aggregations/bucket/histogram/InternalHistogram$Bucket Jcom/groupbyinc/flux/search/aggregations/bucket/histogram/InternalHistogram Bucket Rcom/groupbyinc/flux/search/aggregations/bucket/histogram/InternalHistogram$Factory " Mcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation$Bucket $ Fcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation & TYPE BLcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; STREAM SLcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorStreams$Stream; formatter GLcom/groupbyinc/flux/search/aggregations/support/format/ValueFormatter; gapPolicy JLcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy; lag I registerStreams ()V * + 4 /com/groupbyinc/flux/common/bytes/BytesReference 6 ( ) 8 stream 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; : ;
< registerStream ?(Lcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorStreams$Stream;[Lcom/groupbyinc/flux/common/bytes/BytesReference;)V > ?
@ B 3
C this ZLcom/groupbyinc/flux/search/aggregations/pipeline/serialdiff/SerialDiffPipelineAggregator; ?(Ljava/lang/String;[Ljava/lang/String;Lcom/groupbyinc/flux/search/aggregations/support/format/ValueFormatter;Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy;ILjava/util/Map;)V %Lcom/groupbyinc/flux/common/Nullable; 7(Ljava/lang/String;[Ljava/lang/String;Ljava/util/Map;)V B I
J , - L . / N 0 1 P name Ljava/lang/String; bucketsPaths [Ljava/lang/String; metadata 5Ljava/util/Map; Ljava/util/Map; type D()Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; reduce ?(Lcom/groupbyinc/flux/search/aggregations/InternalAggregation;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation;
getBuckets ()Ljava/util/List; ] ^
_
getFactory V()Lcom/groupbyinc/flux/search/aggregations/bucket/histogram/InternalHistogram$Factory; a b
c java/util/ArrayList e
f C >com/groupbyinc/flux/common/google/common/collect/EvictingQueue h create C(I)Lcom/groupbyinc/flux/common/google/common/collect/EvictingQueue; j k
i l java/util/List n iterator ()Ljava/util/Iterator; p q o r java/util/Iterator t hasNext ()Z v w u x next ()Ljava/lang/Object; z { u | ()[Ljava/lang/String; T ~
resolveBucketValue(Lcom/groupbyinc/flux/search/aggregations/InternalMultiBucketAggregation;Lcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation$Bucket;Ljava/lang/String;Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy;)Ljava/lang/Double; ? ?
?? java/lang/Double ? valueOf (D)Ljava/lang/Double; ? ?
? ? peek ? {
i ? doubleValue ()D ? ?
? ? isNaN (D)Z ? ?
? ? getAggregations 8()Lcom/groupbyinc/flux/search/aggregations/Aggregations; ? ?
? 4com/groupbyinc/flux/search/aggregations/Aggregations ? asList ? ^ ? ? AGGREGATION_TRANFORM_FUNCTION 8Lcom/groupbyinc/flux/common/google/common/base/Function; ? ? ? /com/groupbyinc/flux/common/util/CollectionUtils ? eagerTransform Z(Ljava/util/List;Lcom/groupbyinc/flux/common/google/common/base/Function;)Ljava/util/List; ? ?
? ? (Ljava/util/Collection;)V B ?
f ? Dcom/groupbyinc/flux/search/aggregations/pipeline/InternalSimpleValue ? ()Ljava/lang/String; R ?
? metaData ()Ljava/util/Map; ? ?
? |(Ljava/lang/String;DLcom/groupbyinc/flux/search/aggregations/support/format/ValueFormatter;Ljava/util/List;Ljava/util/Map;)V B ?
? ? add (Ljava/lang/Object;)Z ? ? o ? getKey ? {
? getDocCount ()J ? ?
?