
com.groupbyinc.flux.search.aggregations.AggregatorFactories$Builder.class Maven / Gradle / Ivy
???? 3 Ccom/groupbyinc/flux/search/aggregations/AggregatorFactories$Builder java/lang/Object AggregatorFactories.java ;com/groupbyinc/flux/search/aggregations/AggregatorFactories Builder Kcom/groupbyinc/flux/search/aggregations/support/AggregationPath$PathElement ?com/groupbyinc/flux/search/aggregations/support/AggregationPath PathElement =com/groupbyinc/flux/search/aggregations/AggregatorFactories$1 names Ljava/util/Set; #Ljava/util/Set; factories Ljava/util/List; MLjava/util/List; pipelineAggregatorFactories ^Ljava/util/List; ()V
java/util/HashSet
java/util/ArrayList !
" $ & this ELcom/groupbyinc/flux/search/aggregations/AggregatorFactories$Builder;
addAggregator ?(Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory;)Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories$Builder; 9com/groupbyinc/flux/search/aggregations/AggregatorFactory , name Ljava/lang/String; . / - 0
java/util/Set 2 add (Ljava/lang/Object;)Z 4 5 3 6 "java/lang/IllegalArgumentException 8 java/lang/StringBuilder :
; 5Two sibling aggregations cannot have the same name: [ = append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? @
; A ] C toString ()Ljava/lang/String; E F
; G (Ljava/lang/String;)V I
9 J java/util/List L M 6 factory ;Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; addPipelineAggregator ?(Lcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorFactory;)Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories$Builder; pipelineAggregatorFactory LLcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorFactory; build ?()Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories; isEmpty ()Z W X M Y EMPTY =Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories; [ \ ] resolvePipelineAggregatorOrder 2(Ljava/util/List;Ljava/util/List;)Ljava/util/List; _ `
a size ()I c d M e toArray (([Ljava/lang/Object;)[Ljava/lang/Object; g h M i <[Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; k ?([Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory;Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories$1;)V m
n orderedpipelineAggregators java/util/HashMap q
r iterator ()Ljava/util/Iterator; t u M v
java/util/Map x java/util/Iterator z hasNext | X { } next ()Ljava/lang/Object; ? { ? Jcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorFactory ? getName ? F
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? y ? java/util/LinkedList ?
? (Ljava/util/Collection;)V ?
" ? get (I)Ljava/lang/Object; ? ? M ? ?(Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorFactory;)V _ ?
?
aggFactory aggFactories pipelineAggregatorFactoriesMap oLjava/util/Map; Ljava/util/Map; aggFactoriesMap ^Ljava/util/Map; orderedPipelineAggregatorrs unmarkedFactories temporarilyMarked ]Ljava/util/Set; contains ? 5 3 ? 4Cyclical dependancy found with pipeline aggregator [ ? M ? getBucketsPaths ()[Ljava/lang/String; ? ?
? ? [Ljava/lang/String; ? parse U(Ljava/lang/String;)Lcom/groupbyinc/flux/search/aggregations/support/AggregationPath; ? ?
? getPathElements ()Ljava/util/List; ? ?
?
0 _count ? java/lang/String ? equals ? 5
? ? _key ? containsKey ? 5 y ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? y ? equalsIgnoreCase (Ljava/lang/String;)Z ? ?
? ? \ - ?
access$200 {(Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories;)[Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; ? ?
?
access$300 O(Lcom/groupbyinc/flux/search/aggregations/AggregatorFactories;)Ljava/util/List; ? ?
? . F
? ? No aggregation [ ? ] found for path [ ? No aggregation found for path [ ? remove ? 5 M ? 3 ?
subFactory subPipelineFactories subFactories foundSubFactory Z pathElement MLcom/groupbyinc/flux/search/aggregations/support/AggregationPath$PathElement; aggName i I matchingFactory bucketsPathElements _Ljava/util/List; firstAggName bucketsPath bucketsPaths orderedPipelineAggregators getAggregatorFactories >()[Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; getPipelineAggregatorFactories Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable(Ljava/util/List;Ljava/util/List;)Ljava/util/List;5(Ljava/util/Map;Ljava/util/Map;Ljava/util/List;Ljava/util/List;Ljava/util/Set;Lcom/groupbyinc/flux/search/aggregations/pipeline/PipelineAggregatorFactory;)V `()Ljava/util/List;
SourceFile InnerClasses ! ? ? ? ? \ &*? *? Y? ? *? "Y? #? %*? "Y? #? '? ? &