All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.indices.analysis.HunspellService.class Maven / Gradle / Ivy

There is a newer version: 198
Show newest version
????4?4com/groupbyinc/flux/indices/analysis/HunspellService6com/groupbyinc/flux/common/component/AbstractComponentHunspellService.java4com/groupbyinc/flux/common/settings/Setting$Property+com/groupbyinc/flux/common/settings/SettingProperty4com/groupbyinc/flux/common/settings/Settings$Builder,com/groupbyinc/flux/common/settings/Settings
Builder%java/lang/invoke/MethodHandles$Lookupjava/lang/invoke/MethodHandlesLookupHUNSPELL_LAZY_LOAD-Lcom/groupbyinc/flux/common/settings/Setting;BLcom/groupbyinc/flux/common/settings/Setting;HUNSPELL_IGNORE_CASEHUNSPELL_DICTIONARY_OPTIONS]Lcom/groupbyinc/flux/common/settings/Setting;dictionaries(Ljava/util/concurrent/ConcurrentHashMap;?Ljava/util/concurrent/ConcurrentHashMap;knownDictionariesLjava/util/Map;jLjava/util/Map;defaultIgnoreCaseZhunspellDirLjava/nio/file/Path;loadingFunctionLjava/util/function/Function;xLjava/util/function/Function;e(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;Ljava/util/Map;)Vjava/io/IOException*1(Lcom/groupbyinc/flux/common/settings/Settings;)V(,
-&java/util/concurrent/ConcurrentHashMap/()V(1
02	4java/util/Collections6unmodifiableMap (Ljava/util/Map;)Ljava/util/Map;89
7:	<resolveHunspellDirectory;(Lcom/groupbyinc/flux/env/Environment;)Ljava/nio/file/Path;>?
@#$	B	DgetB(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;FG
	Hjava/lang/BooleanJbooleanValue()ZLM
KN!"	P"java/lang/invoke/LambdaMetafactoryRmetafactory?(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;TU
SVW&(Ljava/lang/Object;)Ljava/lang/Object;Ylambda$new$0?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/analysis/hunspell/Dictionary;[\
]^[(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/analysis/hunspell/Dictionary;`apply?(Lcom/groupbyinc/flux/indices/analysis/HunspellService;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;)Ljava/util/function/Function;bcd%&	f	hscanAndLoadDictionariesj1
k#com/groupbyinc/flux/env/Environmentm
java/util/Mapothis6Lcom/groupbyinc/flux/indices/analysis/HunspellService;settings.Lcom/groupbyinc/flux/common/settings/Settings;env%Lcom/groupbyinc/flux/env/Environment;
getDictionaryFYpxEcom/groupbyinc/flux/common/apache/lucene/analysis/hunspell/DictionaryzcomputeIfAbsentC(Ljava/lang/Object;Ljava/util/function/Function;)Ljava/lang/Object;|}
0~localeLjava/lang/String;
dictionaryGLcom/groupbyinc/flux/common/apache/lucene/analysis/hunspell/Dictionary;
configFile()Ljava/nio/file/Path;??
n?hunspell?java/nio/file/Path?resolve((Ljava/lang/String;)Ljava/nio/file/Path;????java/lang/Exception?java/lang/Throwable?java/nio/file/LinkOption?java/nio/file/Files?isDirectory2(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z??
??newDirectoryStream5(Ljava/nio/file/Path;)Ljava/nio/file/DirectoryStream;??
??java/nio/file/DirectoryStream?iterator()Ljava/util/Iterator;????java/util/Iterator?hasNext?M??next()Ljava/lang/Object;????*(Ljava/nio/file/Path;)Ljava/nio/file/Path;????*.dic?G(Ljava/nio/file/Path;Ljava/lang/String;)Ljava/nio/file/DirectoryStream;??
??getFileName????toString()Ljava/lang/String;????w`
?logger!Lorg/apache/logging/log4j/Logger;??	?? lambda$scanAndLoadDictionaries$1((Ljava/nio/file/Path;)Ljava/lang/Object;??
??>(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/util/Supplier;F??org/apache/logging/log4j/Logger?error@(Lorg/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V????close?1??
addSuppressed(Ljava/lang/Throwable;)V??
??eLjava/lang/Exception;inner5Ljava/nio/file/DirectoryStream;Ljava/nio/file/DirectoryStream;filestreamloadDictionary?(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;)Lcom/groupbyinc/flux/common/apache/lucene/analysis/hunspell/Dictionary;isDebugEnabled?M??#Loading hunspell dictionary [{}]...?debug'(Ljava/lang/String;Ljava/lang/Object;)V????-com/groupbyinc/flux/common/io/FileSystemUtils?isAccessibleDirectory8(Ljava/nio/file/Path;Lorg/apache/logging/log4j/Logger;)Z??
??*com/groupbyinc/flux/ElasticsearchException?java/util/Locale?ROOTLjava/util/Locale;??	??'Could not find hunspell dictionary [%s]?java/lang/Object?java/lang/String?formatK(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
?((Ljava/lang/String;[Ljava/lang/Object;)V(
?	java/lang/StringBuilder	

2append-(Ljava/lang/String;)Ljava/lang/StringBuilder;

.

?getByPrefixB(Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings;
loadDictionarySettingsr(Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings;
ignore_casevalueOf(Z)Ljava/lang/Boolean;
KgetAsBoolean:(Ljava/lang/String;Ljava/lang/Boolean;)Ljava/lang/Boolean;!"
#*.aff%files=(Ljava/nio/file/Path;Ljava/lang/String;)[Ljava/nio/file/Path;'(
?)/Missing affix file for hunspell dictionary [%s]+[Ljava/nio/file/Path;-7Too many affix files exist for hunspell dictionary [%s]/java/util/ArrayList1(I)V(3
24java/io/InputStream6java/util/List8java/nio/file/OpenOption:newInputStreamF(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;<=
?>add(Ljava/lang/Object;)Z@A9B@com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectoryDtmpFileF?
nG(Ljava/nio/file/Path;)V(I
EJu(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/lang/String;Ljava/io/InputStream;Ljava/util/List;Z)V(L
{M8com/groupbyinc/flux/common/apache/lucene/store/DirectoryO
P?java/io/CloseableR5com/groupbyinc/flux/common/apache/lucene/util/IOUtilsT([Ljava/io/Closeable;)V?V
UW(Ljava/lang/Iterable;)V?Y
UZlambda$loadDictionary$2&(Ljava/lang/String;)Ljava/lang/Object;\]
^_<(Ljava/lang/String;)Lorg/apache/logging/log4j/util/Supplier;FabiItmp:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;nodeSettingsdicDirdictSettings
ignoreCase
affixFilesaffixStreamLjava/io/InputStream;dicFiles
dicStreams'Ljava/util/List;Ljava/util/List;settings.ymlsexistsu?
?vbuilder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;xy
zloadFromPathL(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;|}
~putf(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;??
?build0()Lcom/groupbyinc/flux/common/settings/Settings;??
?
settings.json?dirdefaults5org/apache/logging/log4j/message/ParameterizedMessage?'Could not load hunspell dictionary [{}]?(?
??%exception while loading dictionary {}???
?java/lang/IllegalStateException?/failed to load hunspell dictionary for locale: ?*(Ljava/lang/String;Ljava/lang/Throwable;)V(?
??)indices.analysis.hunspell.dictionary.lazy?FALSELjava/lang/Boolean;??	K?	NodeScope6Lcom/groupbyinc/flux/common/settings/Setting$Property;??	?boolSettingy(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
	?0indices.analysis.hunspell.dictionary.ignore_case?%indices.analysis.hunspell.dictionary.?groupSettingx(Ljava/lang/String;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
	?	SignatureCodeLocalVariableTableLocalVariableTypeTableLineNumberTable
StackMapTable
Exceptions?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/env/Environment;Ljava/util/Map;)VBootstrapMethods
SourceFileInnerClasses!????? !"#$%&?'
()??S*+?.*?0Y?3?5*-?;?=**,?A?C*?E+?I?K?O?Q**+,?e?g?i+?I?K?O?*?l??*SqrSstSuvS?S ?&	^V_`!a2b>iNjRm??Rnp?+??w`?|$*?=+?y?{M,?*?5+*?g??{M,?? $qr$?????uvw"y??"{>??@+???????qruv?}j1??=*?C?????1*?C??LM+??N-????-????:??????*?C?????::?????+*??????W?:*???????]????N:?٧B???8::?:?%????:		?٧
?????5+?N,?+???AN,-?٧8+???/N-M-?:
+?!,?+???:,?٧	+??
??ctw?????T???T????????????????%(??4y??Q???3??$&??=qr?Q???&???J???3???T?c?t?w?y?????????????<????????W???????S?I?H??	?????????????P?H?D??????
??+???p?*?ù??*???+??*?C+??:*?ø???Y?????Y+S??????,?I?:?
Y?+?????M,*?Q? ?$?O6&?*:?? ??Y??,??Y+S??????? ??Y??0??Y+S?????:??*:	?2Y	??5:
6	??
	2?;???CW????2?;??:?EY-?H?K::?{Y?
?N:
?!??Q?:?٧?Q?SYS?X
?[
?:

:
?:?!??Q?:?٧?Q?:*??+?c???:?SYS?X
?[?	RWZ?5H?5H????????k??????k??????"de2~fg????qr????ht?uv$?i$X?jt?Rk"?Hl-??mn??o-	??pr
???pq
??!???$?0?L?X?w???????????????????????%?5?H?k?w?|????????????????3??j.#??n?.7.9?!?A?n?.7.9P?{??
?n?.7.9P??H???n?.7.9P?????n?.7.9?U???
??J*t??M,???w??{,?+?????*???M,???w??{,?+?????+?? J?$J?t
@?$??
??$?.?9?H??	?$?#?+
\]?6??Y?*????????
???C??Y?*???????$????[\??(*-+,???:??Y?
Y???-???????4
??(qr(st(uv(???de
f?H??1?vF????O?Y??S???i????O?Y??S???E??Y??S?????PQRS2T?UET? XZ_aX???X?`???	
@	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy