com.groupbyinc.flux.ingest.ConfigurationUtils.class Maven / Gradle / Ivy
???? 4? -com/groupbyinc/flux/ingest/ConfigurationUtils java/lang/Object ConfigurationUtils.java /com/groupbyinc/flux/ingest/ConfigurationUtils$1 java/util/Map$Entry
java/util/Map
Entry ,com/groupbyinc/flux/ingest/Processor$Factory
$com/groupbyinc/flux/ingest/Processor Factory 1com/groupbyinc/flux/script/TemplateScript$Factory )com/groupbyinc/flux/script/TemplateScript %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup TAG_KEY Ljava/lang/String; tag ()V
! this /Lcom/groupbyinc/flux/ingest/ConfigurationUtils; readOptionalStringProperty Y(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String; remove &(Ljava/lang/Object;)Ljava/lang/Object; ' ( )
readString \(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/String; + ,
-
processorType processorTag
configuration 5Ljava/util/Map; Ljava/util/Map; propertyName value Ljava/lang/Object; readStringProperty k(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; 7 8
9 required property is missing ; newConfigurationException v(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/ElasticsearchException; = >
? defaultValue java/lang/String B java/lang/StringBuilder D
E ! &property isn't a string, but of type [ G append -(Ljava/lang/String;)Ljava/lang/StringBuilder; I J
E K getClass ()Ljava/lang/Class; M N
O java/lang/Class Q getName ()Ljava/lang/String; S T
R U ] W toString Y T
E Z readBooleanProperty [(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/Boolean; java/lang/Boolean ^ valueOf (Z)Ljava/lang/Boolean; ` a
_ b readBoolean ](Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Boolean; d e
f booleanValue ()Z h i
_ j Z 'property isn't a boolean, but of type [ m readIntProperty m(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; java/lang/Exception q
Z java/lang/Integer t parseInt (Ljava/lang/String;)I v w
u x (I)Ljava/lang/Integer; ` z
u { (property cannot be converted to an int [ } e Ljava/lang/Exception; Ljava/lang/Integer; readOptionalList W(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/util/List; readList Z(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/util/List; ? ?
? java/util/List ? $property isn't a list, but of type [ ?
stringList Ljava/util/List; Ljava/util/List; readMap V(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map; Y(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map; ? ?
? readOptionalMap #property isn't a map, but of type [ ? map &Ljava/util/Map;
readObject Y(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object; [ ? ] ? /com/groupbyinc/flux/ElasticsearchParseException ? ((Ljava/lang/String;[Ljava/lang/Object;)V ?
? ? addHeadersToException e(Lcom/groupbyinc/flux/ElasticsearchException;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V ? ?
? msg reason exception 1Lcom/groupbyinc/flux/ElasticsearchParseException; y(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;)Lcom/groupbyinc/flux/ElasticsearchException; $com/groupbyinc/flux/ExceptionsHelper ? convertToElastic C(Ljava/lang/Exception;)Lcom/groupbyinc/flux/ElasticsearchException; ? ?
? ? cause ,Lcom/groupbyinc/flux/ElasticsearchException; readProcessorConfigs 1(Ljava/util/List;Ljava/util/Map;)Ljava/util/List; java/util/ArrayList ?
? ! iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? i ? ? next ()Ljava/lang/Object; ? ? ? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? ? ? getKey ? ? ? getValue ? ? ?
readProcessor X(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/ingest/Processor; ? ?
? add (Ljava/lang/Object;)Z ? ? ? ?
useOrSuppress A(Ljava/lang/Throwable;Ljava/lang/Throwable;)Ljava/lang/Throwable; ? ?
? ? entry ^Ljava/util/Map$Entry;>; Ljava/util/Map$Entry; processorConfigWithKey XLjava/util/Map;>; processorConfigs jLjava/util/List;>;>; processorFactories QLjava/util/Map;
processors 8Ljava/util/List; compileTemplate ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/script/ScriptService;)Lcom/groupbyinc/flux/script/TemplateScript$Factory; mustache ? (com/groupbyinc/flux/script/ScriptService ? isLangSupported (Ljava/lang/String;)Z ? ?
? ? !com/groupbyinc/flux/script/Script ? %com/groupbyinc/flux/script/ScriptType ? INLINE 'Lcom/groupbyinc/flux/script/ScriptType; ? ? ? ? java/util/Collections ? emptyMap ()Ljava/util/Map; ?
? ](Lcom/groupbyinc/flux/script/ScriptType;Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;)V
? CONTEXT *Lcom/groupbyinc/flux/script/ScriptContext; compile a(Lcom/groupbyinc/flux/script/Script;Lcom/groupbyinc/flux/script/ScriptContext;)Ljava/lang/Object;
? "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/util/Map;)Lcom/groupbyinc/flux/script/TemplateScript; lambda$compileTemplate$0 N(Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/script/TemplateScript;
newInstance G(Ljava/lang/String;)Lcom/groupbyinc/flux/script/TemplateScript$Factory; = ?
script #Lcom/groupbyinc/flux/script/Script;
propertyValue
scriptService *Lcom/groupbyinc/flux/script/ScriptService; processor_type' *com/groupbyinc/flux/ElasticsearchException) addHeader ((Ljava/lang/String;[Ljava/lang/String;)V+,
*-
processor_tag/
property_name1 % &
3 get5 ( 6 ignore_failure8 \ ]
:
on_failure< ? ?
> ? ?
@ isEmptyB i ?C processors list cannot be emptyE createG ? H C Oprocessor [{}] doesn't support one or more provided configuration parameters {}K keySetM ? N toArray ()[Ljava/lang/Object;PQ ?R java/util/ArraysT '([Ljava/lang/Object;)Ljava/lang/String; YV
UW size ()IYZ ?[ ,com/groupbyinc/flux/ingest/CompoundProcessor]
singletonList $(Ljava/lang/Object;)Ljava/util/List;_`
?a $(ZLjava/util/List;Ljava/util/List;)V c
^d $No processor type exists with name [f processor &Lcom/groupbyinc/flux/ingest/Processor;
ignoreFailure onFailureProcessorConfigs onFailureProcessors type config factory .Lcom/groupbyinc/flux/ingest/Processor$Factory; $(Ljava/util/Map;Ljava/lang/String;)V q
r params
ConstantValue Code LocalVariableTable LineNumberTable LocalVariableTypeTable Signature (Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/String;
StackMapTable ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/Boolean; ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/util/List; u(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/util/List; ?(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/util/Map; ?(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/util/Map; (Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;)Ljava/lang/Object;
Exceptions ?(Ljava/util/List;>;>;Ljava/util/Map;)Ljava/util/List; ?(Ljava/util/Map;Ljava/lang/String;Ljava/util/Map;)Lcom/groupbyinc/flux/ingest/Processor; BootstrapMethods
SourceFile InnerClasses 1 u v 3 *? "? w # $ x
* + % &