com.groupbyinc.flux.script.Script.class Maven / Gradle / Ivy
???? 4 !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; java/util/Objects I requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; K L
J M currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; O P Q nextToken S P T VALUE_STRING :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; V W X %com/groupbyinc/flux/script/ScriptType Z INLINE \ + [ ] text ()Ljava/lang/String; _ ` a java/util/Collections c emptyMap ()Ljava/util/Map; e f
d g ](Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V i j
k 5 6 m apply Z(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/Object;)Ljava/lang/Object; o p
q
access$000 b(Lcom/groupbyinc/flux/script/Script$Builder;Ljava/lang/String;)Lcom/groupbyinc/flux/script/Script; s t
u defaultLang token (Ljava/lang/String;)V * + z l(Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;)V i |
} this #Lcom/groupbyinc/flux/script/Script; java/lang/String ?
java/util/Map ? ()V i ?
? 8 + ? : $ ? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map; ? ?
d ? > < ? 9 $ ? ; < ? STORED ? + [ ? "java/lang/IllegalArgumentException ? +lang cannot be specified for stored scripts ? i y
? ? java/lang/IllegalStateException ? .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 ? f
? ? V_5_1_1 ? ? ? ? isEmpty ()Z ? ? ? ? readBoolean ? ?
? ? java/util/HashMap ?
? ? 0com/groupbyinc/flux/common/xcontent/XContentType ? f(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/xcontent/XContentType; ? ?
? ? mediaType ? `
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? 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 ?
? ? ? ?
[ ? writeOptionalString ? y
? ? writeString ? y
? ? writeMap (Ljava/util/Map;)V ? ?
? ? writeBoolean (Z)V
? containsKey (Ljava/lang/Object;)Z ? get L ? fromMediaTypeOrFormat F(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentType;
?
? ? out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput;
toXContent ?(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 startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
4()Lcom/groupbyinc/flux/common/xcontent/XContentType; ?
equals
?! 1 0 # %com/groupbyinc/flux/common/ParseField% getPreferredName' `
&( +com/groupbyinc/flux/common/bytes/BytesArray*
+ ? rawField z(Ljava/lang/String;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;-.
/ field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;12
3 id5 2 0 7 3 0 9 [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;1;
< 4 0 > X(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;1@
A endObjectC
D builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
builderParams 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; getType )()Lcom/groupbyinc/flux/script/ScriptType; getLang getIdOrCode
getOptions getParams getClass ()Ljava/lang/Class;PQ
R ?! o Ljava/lang/Object; script hashCode ()IXY
[Z
?Z ?Z result I Script{type=` -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?b
?c , lang='e (C)Ljava/lang/StringBuilder; ?g
?h , idOrCode='j
, options=l , params=n lambda$static$6 $(Ljava/lang/Object;Ljava/util/Map;)V
access$100 =(Lcom/groupbyinc/flux/script/Script$Builder;Ljava/util/Map;)Vrs
t rec$ x$0 lambda$static$5
access$200ys
z 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 i?
? W ((Ljava/lang/String;[Ljava/lang/String;)V i?
&? / 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;? ? 2(Ljava/lang/String;Ljava/util/function/Supplier;)V i?
? '(Ljava/lang/Object;Ljava/lang/Object;)V???
??? accept !()Ljava/util/function/BiConsumer;?? ? L??
??? .()Lcom/groupbyinc/flux/common/CheckedFunction; o? ?
getParseField )()Lcom/groupbyinc/flux/common/ParseField;??
[? OBJECT_OR_STRING