
com.groupbyinc.flux.script.ScriptParameterParser.class Maven / Gradle / Ivy
???? 35 0com/groupbyinc/flux/script/ScriptParameterParser java/lang/Object ScriptParameterParser.java Ecom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue ScriptParameterValue 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token java/util/Map$Entry
java/util/Map Entry 3com/groupbyinc/flux/script/ScriptService$ScriptType (com/groupbyinc/flux/script/ScriptService
ScriptType 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 6com/groupbyinc/flux/script/Script$ScriptParseException !com/groupbyinc/flux/script/Script ScriptParseException FILE_SUFFIX Ljava/lang/String; _file $ INDEXED_SUFFIX _id ' parameterValues Ljava/util/Map; jLjava/util/Map; inlineParameters Ljava/util/Set; 8Ljava/util/Set; fileParameters indexedParameters lang deprecationLogger 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; ()V (Ljava/util/Set;)V 4 6
7 this 2Lcom/groupbyinc/flux/script/ScriptParameterParser; 4 5
; java/util/HashMap =
> ; ) * @ 1 # B getClass ()Ljava/lang/Class; D E
F *com/groupbyinc/flux/common/logging/Loggers H getLogger @(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/logging/ESLogger; J K
I L 4com/groupbyinc/flux/common/logging/DeprecationLogger N 0(Lcom/groupbyinc/flux/common/logging/ESLogger;)V 4 P
O Q 2 3 S
java/util/Set U isEmpty ()Z W X V Y +com/groupbyinc/flux/common/logging/ESLogger [
SCRIPT_INLINE 'Lcom/groupbyinc/flux/common/ParseField; ] ^ _ java/util/Collections a singleton #(Ljava/lang/Object;)Ljava/util/Set; c d
b e , - g SCRIPT_FILE i ^ j / - l SCRIPT_ID n ^ o 0 - q java/util/HashSet s
t ; iterator ()Ljava/util/Iterator; v w V x java/util/Iterator z hasNext | X { } next ()Ljava/lang/Object; ? { ? java/lang/String ? ,com/groupbyinc/flux/common/ParseFieldMatcher ? EMPTY .Lcom/groupbyinc/flux/common/ParseFieldMatcher; ? ? ? ? SCRIPT_LANG ? ^ ? match <(Ljava/lang/String;Lcom/groupbyinc/flux/common/ParseField;)Z ? ?
? ? "java/lang/IllegalArgumentException ? 7lang is reserved and cannot be used as a parameter name ? (Ljava/lang/String;)V 4 ?
? ? %com/groupbyinc/flux/common/ParseField ? ((Ljava/lang/String;[Ljava/lang/String;)V 4 ?
? ? add (Ljava/lang/Object;)Z ? ? V ? java/lang/StringBuilder ?
? ; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ?
parameterName parameterNames #Ljava/util/Set; logger -Lcom/groupbyinc/flux/common/logging/ESLogger; token ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser;Lcom/groupbyinc/flux/common/ParseFieldMatcher;)Z java/io/IOException ? VALUE_STRING :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ?
? text ? ? ? getPreferredName ? ?
? ?
textOrNull ? ? ? INLINE 5Lcom/groupbyinc/flux/script/ScriptService$ScriptType; ? ? ? putParameterValue \(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;)V ? ?
? ? replace D(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String; ? ?
? ? FILE ? ? ? INDEXED ? ? ? coreParameterName parameter currentFieldName parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; parseFieldMatcher parseConfig A(Ljava/util/Map;ZLcom/groupbyinc/flux/common/ParseFieldMatcher;)V entrySet ()Ljava/util/Set; ? ? ? getKey ? ? ? getValue ? ? ? remove ? 5 { ? Value must be of type String: [ ? ] ? ((Ljava/lang/String;[Ljava/lang/Object;)V 4 ?
? stringValue entry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; parameterValue Ljava/lang/Object; itr QLjava/util/Iterator;>; Ljava/util/Iterator; config 5Ljava/util/Map; removeMatchedEntries Z get &(Ljava/lang/Object;)Ljava/lang/Object; J(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;)V 4
put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
Only one of [ ,
] is allowed. script
scriptType parseParams :(Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)V param &(Ljava/lang/String;)Ljava/lang/String; value params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; getDefaultScriptParameterValue I()Lcom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue; getScriptParameterValue [(Ljava/lang/String;)Lcom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue;
?this form of the script api is deprecated and will be removed from the java api in the next major version. See scripting section of the documentation for the new syntax"
deprecated$ ?
O% scriptParameterValue GLcom/groupbyinc/flux/script/ScriptParameterParser$ScriptParameterValue;
ConstantValue Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable &(Ljava/util/Set;)V
Exceptions g(Ljava/util/Map;ZLcom/groupbyinc/flux/common/ParseFieldMatcher;)V
SourceFile InnerClasses ! " # ) % &