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 readStringOrIntProperty readStringOrInt ] ,
^ java/lang/Integer ` valueOf &(Ljava/lang/Object;)Ljava/lang/String; b c
C d -property isn't a string or int, but of type [ f readOptionalStringOrIntProperty readBooleanProperty [(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Z)Ljava/lang/Boolean; java/lang/Boolean k (Z)Ljava/lang/Boolean; b m
l n readBoolean ](Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/Boolean; p q
r booleanValue ()Z t u
l v Z 'property isn't a boolean, but of type [ y readIntProperty m(Ljava/lang/String;Ljava/lang/String;Ljava/util/Map;Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; java/lang/Exception }
Z parseInt (Ljava/lang/String;)I ? ?
a ? (I)Ljava/lang/Integer; b ?
a ? (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 ? u ? ? 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_type1 *com/groupbyinc/flux/ElasticsearchException3 addHeader ((Ljava/lang/String;[Ljava/lang/String;)V56
47
processor_tag9
property_name; % &
= get? ( @ ignore_failureB i j
D
on_failureF ? ?
H ? ?
J isEmptyL u ?M processors list cannot be emptyO createQ ? R M Oprocessor [{}] doesn't support one or more provided configuration parameters {}U keySetW ? X toArray ()[Ljava/lang/Object;Z[ ?\ java/util/Arrays^ '([Ljava/lang/Object;)Ljava/lang/String; Y`
_a size ()Icd ?e ,com/groupbyinc/flux/ingest/CompoundProcessorg
singletonList $(Ljava/lang/Object;)Ljava/util/List;ij
k $(ZLjava/util/List;Ljava/util/List;)V m
hn $No processor type exists with name [p 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 {
| 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 ? 3 *? "? ? # $ ?
* + % &