com.groupbyinc.flux.common.settings.Settings.class Maven / Gradle / Ivy
???? 4? ,com/groupbyinc/flux/common/settings/Settings java/lang/Object 6com/groupbyinc/flux/common/xcontent/ToXContentFragment
Settings.java .com/groupbyinc/flux/common/settings/Settings$1 Ccom/groupbyinc/flux/common/settings/Settings$PrefixedSecureSettings
PrefixedSecureSettings 8com/groupbyinc/flux/common/settings/Settings$FilteredMap
FilteredMap 4com/groupbyinc/flux/common/settings/Settings$Builder Builder Dcom/groupbyinc/flux/common/settings/Settings$DeprecationLoggerHolder DeprecationLoggerHolder java/util/Map$Entry
java/util/Map Entry 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser " Token 8com/groupbyinc/flux/common/xcontent/ToXContent$MapParams % MapParams %java/lang/invoke/MethodHandles$Lookup ( java/lang/invoke/MethodHandles * Lookup EMPTY .Lcom/groupbyinc/flux/common/settings/Settings; settings Ljava/util/Map; 5Ljava/util/Map; secureSettings 4Lcom/groupbyinc/flux/common/settings/SecureSettings; firstLevelNames 7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; \Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;>; keys
FORMAT_PARAMS Ljava/util/Set; #Ljava/util/Set; F(Ljava/util/Map;Lcom/groupbyinc/flux/common/settings/SecureSettings;)V ()V ; =
> 5com/groupbyinc/flux/common/apache/lucene/util/SetOnce @
A > 4 5 C 7 5 E java/util/TreeMap G (Ljava/util/Map;)V ; I
H J java/util/Collections L unmodifiableSortedMap ,(Ljava/util/SortedMap;)Ljava/util/SortedMap; N O
M P / 0 R 2 3 T this getSecureSettings 6()Lcom/groupbyinc/flux/common/settings/SecureSettings; getAsStructuredMap ()Ljava/util/Map; java/util/HashMap [ (I)V ; ]
\ ^ entrySet ()Ljava/util/Set; ` a b
java/util/Set d iterator ()Ljava/util/Iterator; f g e h java/util/Iterator j hasNext ()Z l m k n next ()Ljava/lang/Object; p q k r t getKey v q w java/lang/String y getValue { q | processSetting H(Ljava/util/Map;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V ~
? convertMapsToArrays #(Ljava/util/Map;)Ljava/lang/Object; ? ?
? setValue &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? entry ;Ljava/util/Map$Entry; Ljava/util/Map$Entry; valMap map indexOf (I)I ? ?
z ? java/lang/StringBuilder ?
? > append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ? get ? ? ? . ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? substring (II)Ljava/lang/String; ? ?
z ? (I)Ljava/lang/String; ? ?
z ? innerMap newMap key Ljava/lang/String; rest
existingValue Ljava/lang/Object; prefix setting value prefixLength I java/lang/NumberFormatException ? isEmpty ? m ? java/lang/Integer ? parseInt (Ljava/lang/String;)I ? ?
? ? java/lang/Math ? max (II)I ? ?
? ? size ()I ? ? ? java/util/ArrayList ?
? ^ ? ?
? ? add (Ljava/lang/Object;)Z ? ?
? ? index ex !Ljava/lang/NumberFormatException; obj i newValue )Ljava/util/ArrayList; Ljava/util/ArrayList; isArray Z maxIndex getByPrefix B(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings; "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; ? ?
? ? ? ? lambda$getByPrefix$0 '(Ljava/lang/String;Ljava/lang/String;)Z ? ?
? ? (Ljava/lang/String;)Z ? test 2(Ljava/lang/String;)Ljava/util/function/Predicate; ? ? ? r(Ljava/util/Map;Ljava/util/function/Predicate;Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings$1;)V ; ?
? lambda$getByPrefix$1 ? ?
? ? ? g(Lcom/groupbyinc/flux/common/settings/SecureSettings;Ljava/lang/String;Ljava/util/function/Predicate;)V ;
2com/groupbyinc/flux/common/settings/SecureSettings ; <
filter N(Ljava/util/function/Predicate;)Lcom/groupbyinc/flux/common/settings/Settings; java/util/function/Predicate predicate 2Ljava/util/function/Predicate; Ljava/util/function/Predicate;
getAsSettings ? ?
&(Ljava/lang/String;)Ljava/lang/String; &(Ljava/lang/Object;)Ljava/lang/String; ?
8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ?
defaultValue retVal
getAsFloat 6(Ljava/lang/String;Ljava/lang/Float;)Ljava/lang/Float; java/lang/Float
parseFloat (Ljava/lang/String;)F
valueOf (F)Ljava/lang/Float;"#
$ 5com/groupbyinc/flux/common/settings/SettingsException& Failed to parse float setting [( ] with value [* ], *(Ljava/lang/String;Ljava/lang/Throwable;)V ;.
'/ e Ljava/lang/Float; sValue getAsDouble 8(Ljava/lang/String;Ljava/lang/Double;)Ljava/lang/Double; java/lang/Double6 parseDouble (Ljava/lang/String;)D89
7: (D)Ljava/lang/Double;"<
7= Failed to parse double setting [? Ljava/lang/Double; getAsInt :(Ljava/lang/String;Ljava/lang/Integer;)Ljava/lang/Integer; (I)Ljava/lang/Integer;"D
?E Failed to parse int setting [G Ljava/lang/Integer; getAsLong 4(Ljava/lang/String;Ljava/lang/Long;)Ljava/lang/Long; java/lang/LongL parseLong (Ljava/lang/String;)JNO
MP (J)Ljava/lang/Long;"R
MS Failed to parse long setting [U Ljava/lang/Long; hasValue getAsBoolean :(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean; #com/groupbyinc/flux/common/Booleans[ parseBoolean]Z
\^ Ljava/lang/Boolean; #getAsBooleanLenientForPreEs6Indices ?(Lcom/groupbyinc/flux/Version;Ljava/lang/String;Ljava/lang/Boolean;Lcom/groupbyinc/flux/common/logging/DeprecationLogger;)Ljava/lang/Boolean; Ljava/lang/Deprecated; com/groupbyinc/flux/Versiond V_6_0_0_alpha1 Lcom/groupbyinc/flux/Version;fg eh before (Lcom/groupbyinc/flux/Version;)Zjk
el falsen ?
p isBooleanr ?
\s parseBooleanLenientuZ
\v java/lang/Booleanx booleanValuez m
y{ eThe value [{}] of setting [{}] is not coerced into boolean anymore. Please change this value to [{}].} (Z)Ljava/lang/String;"
z? 4com/groupbyinc/flux/common/logging/DeprecationLogger?
deprecated ((Ljava/lang/String;[Ljava/lang/Object;)V??
?? (Z)Ljava/lang/Boolean;"?
y?YZ
? convertedValue indexVersion deprecationLogger 6Lcom/groupbyinc/flux/common/logging/DeprecationLogger; getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; )com/groupbyinc/flux/common/unit/TimeValue? parseTimeValue |(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/TimeValue;??
?? +Lcom/groupbyinc/flux/common/unit/TimeValue; getAsBytesSize r(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; -com/groupbyinc/flux/common/unit/ByteSizeValue? parseBytesSizeValue ?(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/ByteSizeValue;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue;??
?? /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; getAsMemory U(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/ByteSizeValue; /com/groupbyinc/flux/common/unit/MemorySizeValue? parseBytesSizeValueOrHeapRatio??
??
getAsRatio R(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/RatioValue; *com/groupbyinc/flux/common/unit/RatioValue? parseRatioValue @(Ljava/lang/String;)Lcom/groupbyinc/flux/common/unit/RatioValue;??
?? getAsSize j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/SizeValue;)Lcom/groupbyinc/flux/common/unit/SizeValue; )com/groupbyinc/flux/common/unit/SizeValue? parseSizeValue??
?? +Lcom/groupbyinc/flux/common/unit/SizeValue; getAsList $(Ljava/lang/String;)Ljava/util/List; emptyList ()Ljava/util/List;??
M? 4(Ljava/lang/String;Ljava/util/List;)Ljava/util/List;??
? G(Ljava/lang/String;Ljava/util/List;Ljava/lang/Boolean;)Ljava/util/List;??
? $Ljava/util/List; Ljava/util/List;
? > java/util/List? unmodifiableList "(Ljava/util/List;)Ljava/util/List;??
M? "com/groupbyinc/flux/common/Strings? splitStringByCommaToArray '(Ljava/lang/String;)[Ljava/lang/String;??
?? [Ljava/lang/String;? trim? ?
z?? ?? ? string strings commaDelimited result valueFromPrefix getGroups #(Ljava/lang/String;)Ljava/util/Map; $(Ljava/lang/String;Z)Ljava/util/Map;??
?
settingPrefix hasLength? ?
?? "java/lang/IllegalArgumentException? illegal setting prefix ? (Ljava/lang/String;)V ;?
?? length? ?
z? charAt (I)C??
z? getGroupsInternal??
? ignoreNonGrouped
\ > names? a
?
? !Failed to get setting group for [ ] setting prefix and setting [ ] because of a missing '.'
'? unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;
M
groupSettings groupName prefixSettings groups QLjava/util/Map; getAsGroups (Z)Ljava/util/Map;
getAsVersion N(Ljava/lang/String;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/Version; java/lang/Exception fromId (I)Lcom/groupbyinc/flux/Version;
e !Failed to parse version setting [ Ljava/lang/Exception; defaultVersion ? q
A! keySet# a $ stream ()Ljava/util/stream/Stream;&' e( getSettingNames* a+ java/util/stream/Stream- concat M(Ljava/util/stream/Stream;Ljava/util/stream/Stream;)Ljava/util/stream/Stream;/0.1 ? lambda$names$24
56 apply ()Ljava/util/function/Function;9: ; 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ?=.> java/util/stream/Collectors@ toSet ()Ljava/util/stream/Collector;BC
AD collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;FG.H unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;JK
ML set (Ljava/lang/Object;)VNO
AP java/lang/ThrowableR -Ljava/util/stream/Stream; Ljava/util/stream/Stream; toDelimitedString (C)Ljava/lang/String; =X -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?Z
?[ (C)Ljava/lang/StringBuilder; ?]
?^ delimiter C sb Ljava/lang/StringBuilder; equals getClass ()Ljava/lang/Class;ef
gd ? i o that hashCodem ? n readSettingsFromStream b(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)Lcom/groupbyinc/flux/common/settings/Settings; java/io/IOExceptionr 3(Lcom/groupbyinc/flux/common/settings/Settings$1;)V ;t
u 0com/groupbyinc/flux/common/io/stream/StreamInputw readVInty ?
xz
getVersion ()Lcom/groupbyinc/flux/Version;|}
x~ V_6_1_0?g e? onOrAfter?k
e?
readString? ?
x? readGenericValue? q
x? putNull J(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
? putList Z(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
?
? \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ??
? readOptionalString? ?
x? build 0()Lcom/groupbyinc/flux/common/settings/Settings;??
? in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; builder 6Lcom/groupbyinc/flux/common/settings/Settings$Builder; numberOfSettings writeSettingsToStream d(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput?
?~ e ? writeVInt? ]
?? writeString??
?? writeGenericValue?O
?? (Ljava/lang/Object;)I? lambda$writeSettingsToStream$3 (Ljava/util/Map$Entry;)I??
???
applyAsInt $()Ljava/util/function/ToIntFunction;?? ? mapToInt @(Ljava/util/function/ToIntFunction;)Ljava/util/stream/IntStream;??.? java/util/stream/IntStream? sum? ???? h (I)Ljava/lang/StringBuilder; ??
?? writeOptionalString??
?? idx out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; entries LLjava/util/Set;>; 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 2com/groupbyinc/flux/common/settings/SettingsFilter? filterSettings ?(Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings;??
??
flat_settings? paramAsBoolean (Ljava/lang/String;Z)Z?? ? Y Z
? 3com/groupbyinc/flux/common/xcontent/XContentBuilder? field [(Ljava/lang/String;Ljava/lang/Object;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;??
?? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent d(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/settings/Settings; f(Lcom/groupbyinc/flux/common/xcontent/XContentParser;ZZ)Lcom/groupbyinc/flux/common/settings/Settings;??
? parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? #? nextToken?? #? START_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;?? !? java/util/Objects requireNonNull ?
q getTokenLocation 8()Lcom/groupbyinc/flux/common/xcontent/XContentLocation; # S(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Ljava/util/function/Supplier; ?
7com/groupbyinc/flux/common/xcontent/XContentParserUtils ensureExpectedToken ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;Ljava/util/function/Supplier;)V
??
?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;Ljava/lang/StringBuilder;Lcom/groupbyinc/flux/common/settings/Settings$Builder;Z)V?
isClosed m # /com/groupbyinc/flux/ElasticsearchParseException ymalformed, expected end of settings but encountered additional content starting at line number: [{}], column number: [{}] 4com/groupbyinc/flux/common/xcontent/XContentLocation!
lineNumber# ? "$ columnNumber&