com.groupbyinc.flux.script.Script.class Maven / Gradle / Ivy
???? 4S !com/groupbyinc/flux/script/Script java/lang/Object 4com/groupbyinc/flux/common/xcontent/ToXContentObject .com/groupbyinc/flux/common/io/stream/Writeable Script.java #com/groupbyinc/flux/script/Script$1
)com/groupbyinc/flux/script/Script$Builder Builder 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params :com/groupbyinc/flux/common/xcontent/ObjectParser$ValueType 0com/groupbyinc/flux/common/xcontent/ObjectParser ValueType %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup DEFAULT_SCRIPT_LANG Ljava/lang/String; painless % DEFAULT_TEMPLATE_LANG mustache ( DEFAULT_SCRIPT_TYPE 'Lcom/groupbyinc/flux/script/ScriptType; CONTENT_TYPE_OPTION content_type - SCRIPT_PARSE_FIELD 'Lcom/groupbyinc/flux/common/ParseField; SOURCE_PARSE_FIELD LANG_PARSE_FIELD OPTIONS_PARSE_FIELD PARAMS_PARSE_FIELD PARSER 2Lcom/groupbyinc/flux/common/xcontent/ObjectParser; oLcom/groupbyinc/flux/common/xcontent/ObjectParser; type lang idOrCode options Ljava/util/Map; 5Ljava/util/Map; params 5Ljava/util/Map; parse Y(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/script/Script; java/io/IOException B k(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/String;)Lcom/groupbyinc/flux/script/Script; @ D
E parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; S(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/script/Script; java/lang/Throwable J 5com/groupbyinc/flux/common/xcontent/json/JsonXContent L contentBuilder 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; N O
M P 3com/groupbyinc/flux/common/xcontent/XContentBuilder R startObject T O
S U EMPTY_PARAMS 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; W X Y ,com/groupbyinc/flux/common/settings/Settings [
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ] ^
\ _ endObject a O
S b /com/groupbyinc/flux/common/bytes/BytesReference d bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference; f g
e h streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput; j k
e l jsonXContent 7Lcom/groupbyinc/flux/common/xcontent/json/JsonXContent; n o M p 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry r EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; t u s v =com/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler x INSTANCE ?Lcom/groupbyinc/flux/common/xcontent/LoggingDeprecationHandler; z { y | createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; ~
M ? @ A
? $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V ? ?
? java/io/InputStream ? java/lang/IllegalStateException ? (Ljava/lang/Throwable;)V ? ?
? ? stream Ljava/io/InputStream; builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; e Ljava/io/IOException; settings .Lcom/groupbyinc/flux/common/settings/Settings; java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? nextToken ? ? ? VALUE_STRING :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? ? %com/groupbyinc/flux/script/ScriptType ? INLINE ? + ? ? text ()Ljava/lang/String; ? ? ? java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? ](Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V ? ?
? 5 6 ? apply Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Object;)Ljava/lang/Object; ? ?
?
access$000 b(Lcom/groupbyinc/flux/script/Script$Builder;Ljava/lang/String;)Lcom/groupbyinc/flux/script/Script; ? ?
? defaultLang token (Ljava/lang/String;)V * + ? l(Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;)V ? ?
? this #Lcom/groupbyinc/flux/script/Script; java/lang/String ?
java/util/Map ? ()V ? ?
? 8 + ? : $ ? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ? ?
? ? > < ? 9 $ ? ; < ? STORED ? + ? ? "java/lang/IllegalArgumentException ? +lang cannot be specified for stored scripts ? ? ?
? ? .options cannot be specified for stored scripts ?
? ? java/lang/StringBuilder ?
? ? unknown script type [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getName ? ?
? ? ] ? toString ? ?
? ? 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V 0com/groupbyinc/flux/common/io/stream/StreamInput
getVersion ()Lcom/groupbyinc/flux/Version;
com/groupbyinc/flux/Version V_5_3_0 Lcom/groupbyinc/flux/Version;
onOrAfter (Lcom/groupbyinc/flux/Version;)Z
readFrom [(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/script/ScriptType;
? readOptionalString ?
readString ?
readMap ?
V_5_1_1 isEmpty ()Z"# ?$ readBoolean&#
' java/util/HashMap)
* ? 0com/groupbyinc/flux/common/xcontent/XContentType, readEnum #(Ljava/lang/Class;)Ljava/lang/Enum;./
0 mediaType2 ?
-3 put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;56 ?7 contentType 2Lcom/groupbyinc/flux/common/xcontent/XContentType; in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput?
@=>
?B writeOptionalStringD ?
@E writeStringG ?
@H writeMap (Ljava/util/Map;)VJK
@L N writeBoolean (Z)VPQ
@R containsKey (Ljava/lang/Object;)ZTU ?V getX ? ?Y fromMediaTypeOrFormat F(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentType;[\
-] writeEnum (Ljava/lang/Enum;)V_`
@a out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; 4()Lcom/groupbyinc/flux/common/xcontent/XContentType;9e
Sf equalshU
?i +com/groupbyinc/flux/common/bytes/BytesArrayk
l ?
l l 1 0 o %com/groupbyinc/flux/common/ParseFieldq getPreferredNames ?
rt rawField ^(Ljava/lang/String;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;vw
Sx field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;z{
S| id~ 2 0 ? 3 0 ? [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;z?
S? 4 0 ? X(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;z?
S?
builderParams getType )()Lcom/groupbyinc/flux/script/ScriptType; getLang getIdOrCode
getOptions getParams getClass ()Ljava/lang/Class;??
? ?i o Ljava/lang/Object; script hashCode ()I??
??
?? ?? result I Script{type=? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ??
?? , lang='? (C)Ljava/lang/StringBuilder; ??
?? , idOrCode='?
, options=? , params=? lambda$static$6 $(Ljava/lang/Object;Ljava/util/Map;)V
access$100 =(Lcom/groupbyinc/flux/script/Script$Builder;Ljava/util/Map;)V??
? rec$ x$0 lambda$static$5
access$200??
? lambda$static$4 '(Ljava/lang/Object;Ljava/lang/String;)V
access$300 @(Lcom/groupbyinc/flux/script/Script$Builder;Ljava/lang/String;)V??
? lambda$static$3
access$400??
? lambda$static$2 j(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/xcontent/XContentParser; lambda$static$1 I(Ljava/lang/Object;Lcom/groupbyinc/flux/common/xcontent/XContentParser;)V
access$500 b(Lcom/groupbyinc/flux/script/Script$Builder;Lcom/groupbyinc/flux/common/xcontent/XContentParser;)V??
? lambda$static$0 -()Lcom/groupbyinc/flux/script/Script$Builder; ((Lcom/groupbyinc/flux/script/Script$1;)V ??
? java/lang/AutoCloseable? close? ???
addSuppressed? ?
K? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; ? ((Ljava/lang/String;[Ljava/lang/String;)V ??
r? / 0 ? source? 9 ; > "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/util/function/Supplier;X? ? 2(Ljava/lang/String;Ljava/util/function/Supplier;)V ??
? '(Ljava/lang/Object;Ljava/lang/Object;)V??
? accept !()Ljava/util/function/BiConsumer; ???
? .()Lcom/groupbyinc/flux/common/CheckedFunction; ?
getParseField )()Lcom/groupbyinc/flux/common/ParseField;
? OBJECT_OR_STRING