
com.groupbyinc.flux.search.aggregations.pipeline.cumulativesum.CumulativeSumPipelineAggregator.class Maven / Gradle / Ivy
???? 4 ^com/groupbyinc/flux/search/aggregations/pipeline/cumulativesum/CumulativeSumPipelineAggregator Ccom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregator $CumulativeSumPipelineAggregator.java Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext ;com/groupbyinc/flux/search/aggregations/InternalAggregation
ReduceContext Mcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation$Bucket Fcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation
Bucket Ucom/groupbyinc/flux/search/aggregations/InternalMultiBucketAggregation$InternalBucket Fcom/groupbyinc/flux/search/aggregations/InternalMultiBucketAggregation InternalBucket Hcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy >com/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers GapPolicy %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup formatter +Lcom/groupbyinc/flux/search/DocValueFormat; b(Ljava/lang/String;[Ljava/lang/String;Lcom/groupbyinc/flux/search/DocValueFormat;Ljava/util/Map;)V 7(Ljava/lang/String;[Ljava/lang/String;Ljava/util/Map;)V ! #
$ & this `Lcom/groupbyinc/flux/search/aggregations/pipeline/cumulativesum/CumulativeSumPipelineAggregator; name Ljava/lang/String; bucketsPaths [Ljava/lang/String; metadata 5Ljava/util/Map; Ljava/util/Map; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 2 ! 1
4 )com/groupbyinc/flux/search/DocValueFormat 6 0com/groupbyinc/flux/common/io/stream/StreamInput 8 readNamedWriteable H(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/io/stream/NamedWriteable; : ;
9 < in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; doWriteTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput B writeNamedWriteable 8(Lcom/groupbyinc/flux/common/io/stream/NamedWriteable;)V D E
C F out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; getWriteableName ()Ljava/lang/String; cumulative_sum L reduce ?(Lcom/groupbyinc/flux/search/aggregations/InternalAggregation;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation;
getBuckets ()Ljava/util/List; P Q
R Icom/groupbyinc/flux/search/aggregations/bucket/histogram/HistogramFactory T java/util/ArrayList V java/util/List X size ()I Z [ Y \ (I)V ! ^
W _ iterator ()Ljava/util/Iterator; a b Y c java/util/Iterator e hasNext ()Z g h f i next ()Ljava/lang/Object; k l f m ()[Ljava/lang/String; , o
p INSERT_ZEROS JLcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy; r s t resolveBucketValue(Lcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation;Lcom/groupbyinc/flux/search/aggregations/InternalMultiBucketAggregation$InternalBucket;Ljava/lang/String;Lcom/groupbyinc/flux/search/aggregations/pipeline/BucketHelpers$GapPolicy;)Ljava/lang/Double; v w
x java/lang/Double z
isInfinite | h
{ } isNaN h
{ ? doubleValue ()D ? ?
{ ? getAggregations 8()Lcom/groupbyinc/flux/search/aggregations/Aggregations; ? ?
? 4com/groupbyinc/flux/search/aggregations/Aggregations ? spliterator ()Ljava/util/Spliterator; ? ?
? ? java/util/stream/StreamSupport ? stream 3(Ljava/util/Spliterator;Z)Ljava/util/stream/Stream; ? ?
? ? "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; ? lambda$reduce$0 t(Lcom/groupbyinc/flux/search/aggregations/Aggregation;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; ? ?
? ? ? apply ()Ljava/util/function/Function; ? ? ? java/util/stream/Stream ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? Dcom/groupbyinc/flux/search/aggregations/pipeline/InternalSimpleValue ? * K
? ()V ! ?
W ? metaData ()Ljava/util/Map; ? ?
? `(Ljava/lang/String;DLcom/groupbyinc/flux/search/DocValueFormat;Ljava/util/List;Ljava/util/Map;)V ! ?
? ? add (Ljava/lang/Object;)Z ? ? Y ? getKey c(Lcom/groupbyinc/flux/search/aggregations/bucket/MultiBucketsAggregation$Bucket;)Ljava/lang/Number; ? ? U ? getDocCount ()J ? ?
?