
com.groupbyinc.flux.search.aggregations.metrics.scripted.ScriptedMetricParser.class Maven / Gradle / Ivy
???? 3 Mcom/groupbyinc/flux/search/aggregations/metrics/scripted/ScriptedMetricParser java/lang/Object 9com/groupbyinc/flux/search/aggregations/Aggregator$Parser ScriptedMetricParser.java Ecom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue 0com/groupbyinc/flux/script/ScriptParameterParser
ScriptParameterValue 8com/groupbyinc/flux/common/xcontent/XContentParser$Token
2com/groupbyinc/flux/common/xcontent/XContentParser Token Ycom/groupbyinc/flux/search/aggregations/metrics/scripted/ScriptedMetricAggregator$Factory Qcom/groupbyinc/flux/search/aggregations/metrics/scripted/ScriptedMetricAggregator Factory 2com/groupbyinc/flux/search/aggregations/Aggregator Parser @com/groupbyinc/flux/search/aggregations/InternalAggregation$Type ;com/groupbyinc/flux/search/aggregations/InternalAggregation Type 3com/groupbyinc/flux/script/ScriptService$ScriptType (com/groupbyinc/flux/script/ScriptService !
ScriptType INIT_SCRIPT Ljava/lang/String; init_script &
MAP_SCRIPT
map_script ) COMBINE_SCRIPT combine_script ,
REDUCE_SCRIPT
reduce_script / INIT_SCRIPT_FIELD 'Lcom/groupbyinc/flux/common/ParseField; MAP_SCRIPT_FIELD COMBINE_SCRIPT_FIELD REDUCE_SCRIPT_FIELD PARAMS_FIELD REDUCE_PARAMS_FIELD
LANG_FIELD ()V 9 :
; this OLcom/groupbyinc/flux/search/aggregations/metrics/scripted/ScriptedMetricParser; type ()Ljava/lang/String; Ocom/groupbyinc/flux/search/aggregations/metrics/scripted/InternalScriptedMetric A TYPE BLcom/groupbyinc/flux/search/aggregations/InternalAggregation$Type; C D B E name G @
H parse ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/search/internal/SearchContext;)Lcom/groupbyinc/flux/search/aggregations/AggregatorFactory; java/io/IOException L java/util/HashSet N
O ;
java/util/Set Q add (Ljava/lang/Object;)Z S T R U (Ljava/util/Set;)V 9 W
X java/lang/String Z 1com/groupbyinc/flux/search/internal/SearchContext \ !com/groupbyinc/flux/script/Script ^
java/util/Map ` nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; b c d
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; f g h
FIELD_NAME j g k currentName m @ n START_OBJECT p g q parseFieldMatcher 0()Lcom/groupbyinc/flux/common/ParseFieldMatcher; s t
] u 1 2 w ,com/groupbyinc/flux/common/ParseFieldMatcher y match <(Ljava/lang/String;Lcom/groupbyinc/flux/common/ParseField;)Z { |
z } ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/ParseFieldMatcher;)Lcom/groupbyinc/flux/script/Script; J
_ ? 3 2 ? 4 2 ? 5 2 ? 6 2 ? map ()Ljava/util/Map; ? ? ? 7 2 ? /com/groupbyinc/flux/search/SearchParseException ? java/lang/StringBuilder ?
? ; Unknown key for a ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? in [ ? ]: [ ? ]. ? toString ? @
? ? getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; ? ? ? ~(Lcom/groupbyinc/flux/search/internal/SearchContext;Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentLocation;)V 9 ?
? ? isValue ()Z ? ?
? token ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/ParseFieldMatcher;)Z ? ?
? Unexpected token ? getScriptParameterValue [(Ljava/lang/String;)Lcom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue; ? ?
? script ? @
?
scriptType 7()Lcom/groupbyinc/flux/script/ScriptService$ScriptType; ? ?
? lang ? @
? k(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Ljava/lang/String;Ljava/util/Map;)V 9 ?
_ ? getParams ? ?
_ ? ?init_script params are not supported. Parameters for the init_script must be specified in the params field on the scripted_metric aggregator not inside the init_script object ? ?map_script params are not supported. Parameters for the map_script must be specified in the params field on the scripted_metric aggregator not inside the map_script object ? ?combine_script params are not supported. Parameters for the combine_script must be specified in the params field on the scripted_metric aggregator not inside the combine_script object ? !map_script field is required in [ ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/Script;Ljava/util/Map;)V 9 ?
? scriptValue GLcom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue; aggregationName parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; context 3Lcom/groupbyinc/flux/search/internal/SearchContext;
initScript #Lcom/groupbyinc/flux/script/Script; mapScript
combineScript reduceScript params 5Ljava/util/Map; Ljava/util/Map; reduceParams currentFieldName scriptParameters #Ljava/util/Set; Ljava/util/Set; scriptParameterParser 2Lcom/groupbyinc/flux/script/ScriptParameterParser; %com/groupbyinc/flux/common/ParseField ? ((Ljava/lang/String;[Ljava/lang/String;)V 9 ?
? ? ?
reduce_params ? ? 8 2 ?
ConstantValue Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions
SourceFile InnerClasses ! $ % ? ' ( % ? * + % ? - . % ? 0 1 2 3 2 4 2 5 2 6 2 7 2 8 2 9 : ? / *?