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;??	?,()Lorg/apache/logging/log4j/message/Message;? lambda$scanAndLoadDictionaries$1@(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/message/Message;??
??E(Ljava/nio/file/Path;)Lorg/apache/logging/log4j/util/MessageSupplier;F??org/apache/logging/log4j/Logger?errorG(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V????$closeResource1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)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/ArrayList/(I)V(1
02java/io/InputStream4java/util/List6java/nio/file/OpenOption8newInputStreamF(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;:;
?<add(Ljava/lang/Object;)Z>?7@@com/groupbyinc/flux/common/apache/lucene/store/SimpleFSDirectoryBtmpFileD?
nE(Ljava/nio/file/Path;)V(G
CHu(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/lang/String;Ljava/io/InputStream;Ljava/util/List;Z)V(J
{Kjava/io/CloseableM,com/groupbyinc/flux/core/internal/io/IOUtilsOclose([Ljava/io/Closeable;)VQR
PS(Ljava/lang/Iterable;)VQU
PV8com/groupbyinc/flux/common/apache/lucene/store/DirectoryXlambda$loadDictionary$2>(Ljava/lang/String;)Lorg/apache/logging/log4j/message/Message;Z[
\]C(Ljava/lang/String;)Lorg/apache/logging/log4j/util/MessageSupplier;F_`iItmp:Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;nodeSettingsdicDirdictSettings
ignoreCase
affixFilesaffixStreamLjava/io/InputStream;dicFiles
dicStreams'Ljava/util/List;Ljava/util/List;settings.ymlqexistss?
?tbuilder8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;vw
xloadFromPathL(Ljava/nio/file/Path;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;z{
|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(?
??java/lang/AutoCloseable?Q1??
addSuppressed(Ljava/lang/Throwable;)V??
??x0Ljava/lang/Throwable;x1Ljava/lang/AutoCloseable;)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 ?&	]U^_!`2a>hNiRl??Rnp?+??w`?|$*?=+?y?{M,?*?5+*?g??{M,?? $qr$?????tuv"x??"{>??@+???????qruv?|j1?E
?*?C??????*?C??LM+??N-????-????:?????x*?C?????::?????+*??????W?:*???????'?ק::?:?
?????k+?,+?קN-M-?:	+?,+??	??ctw?T???T??????????????4y??Qc??3??$????qr?Qc??????J???3???T?c?t?w?y??????????????????~?????W???????N?H??
??????K?D??

?????+?????*?ù??*???+??*?C+??:*?ø???Y?????Y+S??????,?I?:?Y?	+?
?
???M,*?Q??"?O6$?(:?? ??Y??*??Y+S??????? ??Y??.??Y+S?????:??(:	?0Y	??3:
6	??
	2?9?=?AW????2?9?=:?CY-?F?I::?{Y?
?L:
???NYS?T
?W
?:

:
?:???:*??+?a???:?NYS?T
?W?5Hc?5Hlcnl?Ox?cxx??O?c?????"bc2Fdez???qr????ft?uv$?g$XLht?i"?j+??kl??m+	??np
???no
??"???$?0?L?X?w???????????????????????%?5?H?O?[?`?c?l?x?z???????????
?3??j,#??n?,5,7?!?J
?n?,5,7Y??H???n?,5,7?U???
??J*r??M,???u??y,?}+?????*???M,???u??y,?}+?????+?? J?$J?t
@?$??
??$?.?9?H??	?$?#?+
Z[?6??Y?*????????
???C??Y?*???????$????[\??(*-+,???:??Y?Y?	??
-?
??????4
??(qr(st(uv(???cd
e?H?
???g*?+???M*,???	+???

?????????M??1?vF????O?Y??S???i????O?Y??S???E??Y??S?????OPQR2S?TES? XZ_aX???X?^???	
@	




© 2015 - 2024 Weber Informatics LLC | Privacy Policy