
com.groupbyinc.flux.search.aggregations.metrics.scripted.InternalScriptedMetric.class Maven / Gradle / Ivy
???? 3, Ocom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric Jcom/groupbyinc/flux/search/aggregations/metrics/InternalMetricsAggregation Gcom/groupbyinc/flux/search/aggregations/metrics/scripted/ScriptedMetric InternalScriptedMetric.java Qcom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric$1 @com/groupbyinc/flux/search/aggregations/InternalAggregation$Type
;com/groupbyinc/flux/search/aggregations/InternalAggregation Type Acom/groupbyinc/flux/search/aggregations/AggregationStreams$Stream :com/groupbyinc/flux/search/aggregations/AggregationStreams Stream Icom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext
ReduceContext 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 1com/groupbyinc/flux/script/ScriptContext$Standard (com/groupbyinc/flux/script/ScriptContext Standard TYPE BLcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; STREAM CLcom/groupbyinc/flux/search/aggregations/AggregationStreams$Stream; reduceScript #Lcom/groupbyinc/flux/script/Script; aggregation Ljava/lang/Object; registerStreams ()V # $ + /com/groupbyinc/flux/common/bytes/BytesReference - ! " / stream 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; 1 2
3 registerStream x(Lcom/groupbyinc/flux/search/aggregations/AggregationStreams$Stream;[Lcom/groupbyinc/flux/common/bytes/BytesReference;)V 5 6
7 9 *
: this QLcom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric; 4(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V 9 >
? name Ljava/lang/String; pipelineAggregators WLjava/util/List; Ljava/util/List; metaData 5Ljava/util/Map; Ljava/util/Map; i(Ljava/lang/String;Ljava/lang/Object;Lcom/groupbyinc/flux/script/Script;Ljava/util/List;Ljava/util/Map;)V
? ' ( K % & M ()Ljava/lang/Object; doReduce ?(Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; java/util/ArrayList R
S : java/util/List U iterator ()Ljava/util/Iterator; W X V Y java/util/Iterator [ hasNext ()Z ] ^ \ _ next a O \ b ' O
d add (Ljava/lang/Object;)Z f g V h get (I)Ljava/lang/Object; j k V l java/util/HashMap n
o : _aggs q
java/util/Map s put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; u v t w !com/groupbyinc/flux/script/Script y getParams ()Ljava/util/Map; { |
z } putAll (Ljava/util/Map;)V ? t ?
scriptService ,()Lcom/groupbyinc/flux/script/ScriptService; ? ?
? AGGS 3Lcom/groupbyinc/flux/script/ScriptContext$Standard; ? ? ? java/util/Collections ? emptyMap ? |
? ? (com/groupbyinc/flux/script/ScriptService ? compile ?(Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/common/HasContextAndHeaders;Ljava/util/Map;)Lcom/groupbyinc/flux/script/CompiledScript; ? ?
? ?
executable i(Lcom/groupbyinc/flux/script/CompiledScript;Ljava/util/Map;)Lcom/groupbyinc/flux/script/ExecutableScript; ? ?
? ? +com/groupbyinc/flux/script/ExecutableScript ? run ? O ? ? java/lang/Object ? getName ()Ljava/lang/String; ? ?
? ()Ljava/util/List; C ?
? getMetaData ? |
? 9 I
? mapReduceAggregation =Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; vars compiledScript +Lcom/groupbyinc/flux/script/CompiledScript; script -Lcom/groupbyinc/flux/script/ExecutableScript; aggregations OLjava/util/List;
reduceContext KLcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext; aggregationObjects $Ljava/util/List; firstAggregation type D()Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; getProperty $(Ljava/util/List;)Ljava/lang/Object; isEmpty ? ^ V ? size ()I ? ? V ? value ? java/lang/String ? equals ? g
? ? "java/lang/IllegalArgumentException ? java/lang/StringBuilder ?
? : path not supported for [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ]: ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ? ?
? ? (Ljava/lang/String;)V 9 ?
? ? path $Ljava/util/List;
doReadFrom 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException ? 0com/groupbyinc/flux/common/io/stream/StreamInput ? readBoolean ? ^
? ?
readScript W(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/script/Script; ? ?
z ? readGenericValue ? O
? ? 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 ? writeBoolean (Z)V ? ?
? ? writeTo ? ?
z writeGenericValue (Ljava/lang/Object;)V
? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; hasScript Z doXContentBody ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; V(Lcom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric$1;)V
: x0 SLcom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric$1; scripted_metric
?
: Code LineNumberTable LocalVariableTable LocalVariableTypeTable Signature ?(Ljava/lang/String;Ljava/util/List;Ljava/util/Map;)V ?(Ljava/lang/String;Ljava/lang/Object;Lcom/groupbyinc/flux/script/Script;Ljava/util/List;Ljava/util/Map;)V
StackMapTable ?(Ljava/util/List;Lcom/groupbyinc/flux/search/aggregations/InternalAggregation$ReduceContext;)Lcom/groupbyinc/flux/search/aggregations/InternalAggregation; 8(Ljava/util/List;)Ljava/lang/Object;
Exceptions
SourceFile InnerClasses ! ! " # $ % &