com.groupbyinc.flux.index.store.FsDirectoryService.class Maven / Gradle / Ivy
???? 4 2com/groupbyinc/flux/index/store/FsDirectoryService 0com/groupbyinc/flux/index/store/DirectoryService FsDirectoryService.java 4com/groupbyinc/flux/index/store/FsDirectoryService$1 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting
Property *com/groupbyinc/flux/index/IndexModule$Type
%com/groupbyinc/flux/index/IndexModule Type %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup
indexStore ,Lcom/groupbyinc/flux/index/store/IndexStore; INDEX_LOCK_FACTOR_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; kLcom/groupbyinc/flux/common/settings/Setting; path +Lcom/groupbyinc/flux/index/shard/ShardPath; ?(Lcom/groupbyinc/flux/index/IndexSettings;Lcom/groupbyinc/flux/index/store/IndexStore;Lcom/groupbyinc/flux/index/shard/ShardPath;)V *Lcom/groupbyinc/flux/common/inject/Inject; )com/groupbyinc/flux/index/shard/ShardPath !
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId; # $
" % U(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V '
( * , this 4Lcom/groupbyinc/flux/index/store/FsDirectoryService;
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; newDirectory <()Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; java/io/IOException 4 resolveIndex ()Ljava/nio/file/Path; 6 7
" 8 0 1 : < 'com/groupbyinc/flux/index/IndexSettings > getValue A(Lcom/groupbyinc/flux/common/settings/Setting;)Ljava/lang/Object; @ A
? B :com/groupbyinc/flux/common/apache/lucene/store/LockFactory D %java/nio/file/attribute/FileAttribute F java/nio/file/Files H createDirectories R(Ljava/nio/file/Path;[Ljava/nio/file/attribute/FileAttribute;)Ljava/nio/file/Path; J K
I L newFSDirectory ?(Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/apache/lucene/store/LockFactory;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; N O
P java/util/HashSet R INDEX_STORE_PRE_LOAD_SETTING T U java/util/Collection W (Ljava/util/Collection;)V Y
S Z
setPreload ?(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/nio/file/Path;Lcom/groupbyinc/flux/common/apache/lucene/store/LockFactory;Ljava/util/Set;)Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; \ ]
^ location Ljava/nio/file/Path; lockFactory