com.groupbyinc.flux.common.unit.Fuzziness.class Maven / Gradle / Ivy
???? 4 ? )com/groupbyinc/flux/common/unit/Fuzziness java/lang/Object 6com/groupbyinc/flux/common/xcontent/ToXContentFragment .com/groupbyinc/flux/common/io/stream/Writeable Fuzziness.java +com/groupbyinc/flux/common/unit/Fuzziness$1
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 X_FIELD_NAME Ljava/lang/String; fuzziness ZERO +Lcom/groupbyinc/flux/common/unit/Fuzziness; ONE TWO AUTO FIELD 'Lcom/groupbyinc/flux/common/ParseField; (I)V ()V ! #
$ "java/lang/IllegalArgumentException & java/lang/StringBuilder (
) $ ,Valid edit distances are [0, 1, 2] but was [ + append -(Ljava/lang/String;)Ljava/lang/StringBuilder; - .
) / (I)Ljava/lang/StringBuilder; - 1
) 2 ] 4 toString ()Ljava/lang/String; 6 7
) 8 (Ljava/lang/String;)V ! :
' ; java/lang/Integer = (I)Ljava/lang/String; 6 ?
> @ B this I fuzziness can't be null! F java/lang/String H java/util/Locale J ROOT Ljava/util/Locale; L M K N toUpperCase &(Ljava/util/Locale;)Ljava/lang/String; P Q
I R 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException U 0com/groupbyinc/flux/common/io/stream/StreamInput W
readString Y 7
X Z 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 ` writeString b :
a c out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; fromEdits .(I)Lcom/groupbyinc/flux/common/unit/Fuzziness; ! "
i edits build ?(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/unit/Fuzziness;
8 o asString q 7
r equalsIgnoreCase (Ljava/lang/String;)Z t u
I v
; Ljava/lang/Object; string parse a(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/unit/Fuzziness; java/lang/NumberFormatException } currentToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token; ? ? A$SwitchMap$org$elasticsearch$common$xcontent$XContentParser$Token [I ? ? ? ordinal ()I ? ?
? text ? 7 ? parseInt (Ljava/lang/String;)I ? ?
> ? ? ? ? l m
? !Can't parse fuzziness on token: [ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; - ?
) ? minimumSimilarity ex !Ljava/lang/NumberFormatException; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; token :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;
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 ? field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; ? ?
? ? builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;
asDistance ? ?
? equals (Ljava/lang/Object;)Z ? ?
? termLen ? ?
? asFloat ()F ? ?
? java/lang/Math ? min (II)I ? ?
? ? len
I 8 java/lang/Float ?
parseFloat (Ljava/lang/String;)F ? ?
? ? length ? ?
I ? codePointCount ? ?
I ? getClass ()Ljava/lang/Class; ? ?
? java/util/Objects ? '(Ljava/lang/Object;Ljava/lang/Object;)Z ? ?
? ? obj other hashCode ? ?
I ? %com/groupbyinc/flux/common/ParseField ? ((Ljava/lang/String;[Ljava/lang/String;)V ! ?
? ? ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions
SourceFile InnerClasses 1 ? ! " ? ? ;*? %? -? (? #? 'Y? )Y? *,? 0? 35? 0? 9? *? A? C? ? ; D ; E ? 1 2 3 2 5 : 6 ?
? 2 ! : ? w *? %+?
? 'YG? *+? O? S? C? ? D ? 8 9 : <