com.groupbyinc.flux.index.IndexModule.class Maven / Gradle / Ivy
???? 4 %com/groupbyinc/flux/index/IndexModule java/lang/Object IndexModule.java Acom/groupbyinc/flux/index/IndexModule$IndexSearcherWrapperFactory IndexSearcherWrapperFactory *com/groupbyinc/flux/index/IndexModule$Type Type 8com/groupbyinc/flux/index/IndexService$ShardStoreDeleter &com/groupbyinc/flux/index/IndexService ShardStoreDeleter 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup INDEX_STORE_TYPE_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ALcom/groupbyinc/flux/common/settings/Setting; INDEX_STORE_PRE_LOAD_SETTING SLcom/groupbyinc/flux/common/settings/Setting;>; SIMILARITY_SETTINGS_PREFIX Ljava/lang/String; index.similarity " !INDEX_QUERY_CACHE_ENABLED_SETTING BLcom/groupbyinc/flux/common/settings/Setting; $INDEX_QUERY_CACHE_EVERYTHING_SETTING &INDEX_QUERY_CACHE_TERM_QUERIES_SETTING
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; analysisRegistry 5Lcom/groupbyinc/flux/index/analysis/AnalysisRegistry;
engineFactory 7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; iLcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; indexSearcherWrapper |Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; indexEventListeners Ljava/util/Set; ELjava/util/Set; similarities Ljava/util/Map; ?Ljava/util/Map;>;
storeTypes ?Ljava/util/Map;>; forceQueryCacheProvider ?Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce;>; searchOperationListeners Ljava/util/List; KLjava/util/List; indexOperationListeners MLjava/util/List; frozen +Ljava/util/concurrent/atomic/AtomicBoolean; a(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/analysis/AnalysisRegistry;)V ()V B D
E 5com/groupbyinc/flux/common/apache/lucene/util/SetOnce G
H E , - J / - L java/util/HashSet N
O E 1 2 Q java/util/HashMap S
T E 4 5 V 7 5 X 9 - Z java/util/ArrayList \
] E ; < _ > < a )java/util/concurrent/atomic/AtomicBoolean c (Z)V B e
d f @ A h ( ) j * + l 'com/groupbyinc/flux/index/SearchSlowLog n ,(Lcom/groupbyinc/flux/index/IndexSettings;)V B p
o q java/util/List s add (Ljava/lang/Object;)Z u v t w )com/groupbyinc/flux/index/IndexingSlowLog y
z q this 'Lcom/groupbyinc/flux/index/IndexModule; addSettingsUpdateConsumer M(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;)V ensureNotFrozen ? D
? "java/lang/IllegalArgumentException ? setting must not be null ? (Ljava/lang/String;)V B ?
? ? 'com/groupbyinc/flux/index/IndexSettings ? getScopedSettings ;()Lcom/groupbyinc/flux/common/settings/IndexScopedSettings; ? ?
? ? 7com/groupbyinc/flux/common/settings/IndexScopedSettings ? ~
? ? setting 2Lcom/groupbyinc/flux/common/settings/Setting; consumer "Ljava/util/function/Consumer; Ljava/util/function/Consumer; j(Lcom/groupbyinc/flux/common/settings/Setting;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V ~ ?
? ? validator getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? addIndexEventListener 7(Lcom/groupbyinc/flux/index/shard/IndexEventListener;)V listener must not be null ?
java/util/Set ? contains ? v ? ? listener already added ? ? w listener 4Lcom/groupbyinc/flux/index/shard/IndexEventListener; addSearchOperationListener <(Lcom/groupbyinc/flux/index/shard/SearchOperationListener;)V t ? 9Lcom/groupbyinc/flux/index/shard/SearchOperationListener; addIndexOperationListener >(Lcom/groupbyinc/flux/index/shard/IndexingOperationListener;)V ;Lcom/groupbyinc/flux/index/shard/IndexingOperationListener;
addIndexStore 2(Ljava/lang/String;Ljava/util/function/Function;)V
java/util/Map ? containsKey ? v ? ? java/lang/StringBuilder ?
? E key [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] already registered ? toString ()Ljava/lang/String; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? type provider tLjava/util/function/Function; Ljava/util/function/Function;
addSimilarity =(Ljava/lang/String;Lcom/groupbyinc/flux/common/TriFunction;)V 6com/groupbyinc/flux/index/similarity/SimilarityService ? BUILT_IN ? 5 ? ? similarity for name: [ ? is already registered ? name
similarity ?Lcom/groupbyinc/flux/common/TriFunction; (Lcom/groupbyinc/flux/common/TriFunction; setSearcherWrapper F(Lcom/groupbyinc/flux/index/IndexModule$IndexSearcherWrapperFactory;)V set (Ljava/lang/Object;)V ? ?
H ? indexSearcherWrapperFactory CLcom/groupbyinc/flux/index/IndexModule$IndexSearcherWrapperFactory; freeze 6()Lcom/groupbyinc/flux/index/shard/IndexEventListener;
compareAndSet (ZZ)Z ? ?
d ? 5com/groupbyinc/flux/index/CompositeIndexEventListener ? B(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/util/Collection;)V B ?
? ? java/lang/IllegalStateException ? already frozen ?
? ?
isBuiltinType (Ljava/lang/String;)Z values /()[Lcom/groupbyinc/flux/index/IndexModule$Type;
-[Lcom/groupbyinc/flux/index/IndexModule$Type; match
,Lcom/groupbyinc/flux/index/IndexModule$Type; storeType newIndexService?(Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/index/IndexService$ShardStoreDeleter;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/indices/IndicesQueryCache;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;)Lcom/groupbyinc/flux/index/IndexService; java/io/IOException ? ?
get ()Ljava/lang/Object;
H "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;
`(Lcom/groupbyinc/flux/index/IndexService;)Lcom/groupbyinc/flux/index/shard/IndexSearcherWrapper; lambda$newIndexService$0
!
newWrapper E()Lcom/groupbyinc/flux/index/IndexModule$IndexSearcherWrapperFactory;#$ % 2com/groupbyinc/flux/index/shard/IndexEventListener' beforeIndexCreated R(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/common/settings/Settings;)V)*(+ - getValue A(Lcom/groupbyinc/flux/common/settings/Setting;)Ljava/lang/Object;/0
?1 java/lang/String3 "com/groupbyinc/flux/common/Strings5 isEmpty (Ljava/lang/CharSequence;)Z78
69 ?
; *com/groupbyinc/flux/index/store/IndexStore=
> q &(Ljava/lang/Object;)Ljava/lang/Object;@ ?A java/util/function/FunctionC Unknown store type [E ]G applyI@DJ store must not be nullL 'com/groupbyinc/flux/env/NodeEnvironmentN 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryP 9com/groupbyinc/flux/indices/breaker/CircuitBreakerServiceR )com/groupbyinc/flux/common/util/BigArraysT )com/groupbyinc/flux/threadpool/ThreadPoolV (com/groupbyinc/flux/script/ScriptServiceX !com/groupbyinc/flux/client/ClientZ -com/groupbyinc/flux/indices/IndicesQueryCache\ 1com/groupbyinc/flux/indices/mapper/MapperRegistry^ Acom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache` ;com/groupbyinc/flux/common/io/stream/NamedWriteableRegistryb $ d java/lang/Booleanf booleanValue ()Zhi
gj java/util/function/BiFunctionl 5com/groupbyinc/flux/index/cache/query/IndexQueryCachen [(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/indices/IndicesQueryCache;)V Bp
oqI ?ms 0com/groupbyinc/flux/index/cache/query/QueryCacheu 8com/groupbyinc/flux/index/cache/query/DisabledQueryCachew
x q ;(Lcom/groupbyinc/flux/index/IndexSettings;Ljava/util/Map;)V Bz
?{ .com/groupbyinc/flux/index/engine/EngineFactory}?(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/index/similarity/SimilarityService;Lcom/groupbyinc/flux/index/IndexService$ShardStoreDeleter;Lcom/groupbyinc/flux/index/analysis/AnalysisRegistry;Lcom/groupbyinc/flux/index/engine/EngineFactory;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/index/cache/query/QueryCache;Lcom/groupbyinc/flux/index/store/IndexStore;Lcom/groupbyinc/flux/index/shard/IndexEventListener;Lcom/groupbyinc/flux/index/IndexModule$IndexSearcherWrapperFactory;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache;Ljava/util/List;Ljava/util/List;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;)V B
? store ,Lcom/groupbyinc/flux/index/store/IndexStore; factory
queryCache 2Lcom/groupbyinc/flux/index/cache/query/QueryCache; queryCacheProvider ?Ljava/util/function/BiFunction; Ljava/util/function/BiFunction; environment )Lcom/groupbyinc/flux/env/NodeEnvironment; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; shardStoreDeleter :Lcom/groupbyinc/flux/index/IndexService$ShardStoreDeleter; circuitBreakerService ;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
scriptService *Lcom/groupbyinc/flux/script/ScriptService; client #Lcom/groupbyinc/flux/client/Client; indicesQueryCache /Lcom/groupbyinc/flux/indices/IndicesQueryCache; mapperRegistry 3Lcom/groupbyinc/flux/indices/mapper/MapperRegistry; indicesFieldDataCache CLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;
eventListener searcherWrapperFactory newIndexMapperService ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;)Lcom/groupbyinc/flux/index/mapper/MapperService; .com/groupbyinc/flux/index/mapper/MapperService? 3com/groupbyinc/flux/index/analysis/AnalysisRegistry? build ^(Lcom/groupbyinc/flux/index/IndexSettings;)Lcom/groupbyinc/flux/index/analysis/IndexAnalyzers;??
?? lambda$newIndexMapperService$1 5()Lcom/groupbyinc/flux/index/query/QueryShardContext;??
??? ()Ljava/util/function/Supplier;? ?"(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/analysis/IndexAnalyzers;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/index/similarity/SimilarityService;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Ljava/util/function/Supplier;)V B?
?? "(Ljava/util/function/BiFunction;)Vi
d? @Can't modify IndexModule once the index service has been created? 'java/lang/UnsupportedOperationException? &no index query shard context available?
? ? shard (Lcom/groupbyinc/flux/index/IndexService; index.store.type? ? identity ()Ljava/util/function/Function;??D?
IndexScope 6Lcom/groupbyinc/flux/common/settings/Setting$Property;?? ? NodeScope?? ? {(Ljava/lang/String;Ljava/lang/String;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)V B?
? index.store.preload? java/util/Collections? emptyList ()Ljava/util/List;??
?? listSetting ?(Ljava/lang/String;Ljava/util/List;Ljava/util/function/Function;[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
? ? index.queries.cache.enabled? boolSetting y(Ljava/lang/String;Z[Lcom/groupbyinc/flux/common/settings/Setting$Property;)Lcom/groupbyinc/flux/common/settings/Setting;??
? index.queries.cache.everything? &