
com.groupbyinc.flux.script.ScriptModes.class Maven / Gradle / Ivy
???? 3, &com/groupbyinc/flux/script/ScriptModes java/lang/Object ScriptModes.java 3com/groupbyinc/flux/script/ScriptService$ScriptType (com/groupbyinc/flux/script/ScriptService
ScriptType java/util/Map$Entry
java/util/Map
Entry SCRIPT_SETTINGS_PREFIX Ljava/lang/String; script. ENGINE_SETTINGS_PREFIX
script.engine scriptModes ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; zLcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; r(Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Lcom/groupbyinc/flux/common/settings/Settings;)V ()V
5com/groupbyinc/flux/common/google/common/collect/Maps
newHashMap $(Ljava/util/Map;)Ljava/util/HashMap; ! "
# native % remove &(Ljava/lang/Object;)Ljava/lang/Object; ' ( ) buildScriptModeSettingsMap ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; + ,
- / this (Lcom/groupbyinc/flux/script/ScriptModes;
scriptEngines SLjava/util/Map; Ljava/util/Map; scriptContextRegistry 2Lcom/groupbyinc/flux/script/ScriptContextRegistry; settings .Lcom/groupbyinc/flux/common/settings/Settings; filteredEngines ()Ljava/util/HashMap; ! ;
< keySet ()Ljava/util/Set; > ? @ FILE 5Lcom/groupbyinc/flux/script/ScriptService$ScriptType; B C D %com/groupbyinc/flux/script/ScriptMode F ON 'Lcom/groupbyinc/flux/script/ScriptMode; H I G J addGlobalScriptTypeModes ?(Ljava/util/Set;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V L M
N INDEXED P C Q SANDBOX S I G T INLINE V C W processSourceBasedGlobalSettings ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Ljava/util/Map;)V Y Z
[ #processOperationBasedGlobalSettings ] Z
^ processEngineSpecificSettings ` Z
a =com/groupbyinc/flux/common/google/common/collect/ImmutableMap c copyOf P(Ljava/util/Map;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; e f
d g scriptModesMap NLjava/util/HashMap; Ljava/util/HashMap; values 8()[Lcom/groupbyinc/flux/script/ScriptService$ScriptType; l m
n 6[Lcom/groupbyinc/flux/script/ScriptService$ScriptType; p java/lang/StringBuilder r
s append -(Ljava/lang/String;)Ljava/lang/StringBuilder; u v
s w -(Ljava/lang/Object;)Ljava/lang/StringBuilder; u y
s z toString ()Ljava/lang/String; | }
s ~ ,com/groupbyinc/flux/common/settings/Settings ? get &(Ljava/lang/String;)Ljava/lang/String; ? ?
? ? "com/groupbyinc/flux/common/Strings ? hasLength (Ljava/lang/String;)Z ? ?
? ? parse ;(Ljava/lang/String;)Lcom/groupbyinc/flux/script/ScriptMode; ? ?
G ? scriptTypeMode scriptTypeSetting
scriptType JLjava/util/Map; 0com/groupbyinc/flux/script/ScriptContextRegistry ? scriptContexts H()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection; ? ?
? ? Dcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection ? iterator I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator; ? ?
? ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? (com/groupbyinc/flux/script/ScriptContext ? getScriptContextMode ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptContext;)Lcom/groupbyinc/flux/script/ScriptMode; ? ?
? addGlobalScriptContextModes r(Ljava/util/Set;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V ? ?
?
scriptMode
scriptContext *Lcom/groupbyinc/flux/script/ScriptContext; getGroups $(Ljava/lang/String;Z)Ljava/util/Map; ? ?
? ? entrySet ? ? ?
java/util/Set ? ()Ljava/util/Iterator; ? ? ? ? getKey ? ? ? ? ( ? .com/groupbyinc/flux/script/ScriptEngineService ? . ? java/lang/String ? getValue ? ? ?
addScriptMode ?(Lcom/groupbyinc/flux/script/ScriptEngineService;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V ? ?
? scriptTypePrefix scriptEngineService 0Lcom/groupbyinc/flux/script/ScriptEngineService; langSettings WLjava/util/Map$Entry; Ljava/util/Map$Entry; langGroupedSettings QLjava/util/Map; ? } ? ? prefix settingValue ?(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V ? ?
? lang langs #Ljava/util/Set; Ljava/util/Set; types ()[Ljava/lang/String; ? ? ? ? [Ljava/lang/String; ? scriptEngineName script.engine. ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ?
getScriptMode ?(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptContext;)Lcom/groupbyinc/flux/script/ScriptMode; equals (Ljava/lang/Object;)Z ? ?
? ?
d ? "java/lang/IllegalArgumentException ? script mode not found for lang [ ? ], script_type [ ], operation [ ] (Ljava/lang/String;)V
? java/util/TreeMap
putAll (Ljava/util/Map;)V
? :
stringScriptModeEntry PLjava/util/Map$Entry; scriptModesTreeMap NLjava/util/TreeMap; Ljava/util/TreeMap;
stringBuilder Ljava/lang/StringBuilder;
ConstantValue Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable ?(Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Lcom/groupbyinc/flux/common/settings/Settings;)V/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;
StackMapTable (Lcom/groupbyinc/flux/common/settings/Settings;Ljava/util/Map;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Ljava/util/Map;)V ?(Ljava/util/Set;Lcom/groupbyinc/flux/script/ScriptContextRegistry;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V ?(Ljava/util/Set;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V(Lcom/groupbyinc/flux/script/ScriptEngineService;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V ?(Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService$ScriptType;Lcom/groupbyinc/flux/script/ScriptContext;Lcom/groupbyinc/flux/script/ScriptMode;Ljava/util/Map;)V
SourceFile InnerClasses ! ? *? +? $:&? * W*-,? .? 0? 4 1 2 3 5 6 7 8 9
: 5 3 4
: 4 ! , /
0 1 2 "
+ , ? Q? =N+? A ,? E? K-? O+? A ,? R? U-? O+? A ,? X? U-? O*+,-? \*+,-? _*+,-? b-? h? * Q 8 9 Q 3 5 Q 6 7 M i k Q 3 4 M i j ! " 5 8 : &