Package com.atlassian.jira.sharing.index
Class IndexPathDirectoryFactory
java.lang.Object
com.atlassian.jira.sharing.index.IndexPathDirectoryFactory
- All Implemented Interfaces:
DirectoryFactory
,Function<SharedEntity.TypeDescriptor<?>,
,org.apache.lucene.store.Directory> Function<SharedEntity.TypeDescriptor<?>,
org.apache.lucene.store.Directory>
An implementation that uses the
IndexPathManager
as its way of getting a
Directory-
Constructor Summary
ConstructorsConstructorDescriptionIndexPathDirectoryFactory
(IndexPathManager pathManager, LuceneDirectoryUtils luceneDirectoryUtils) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.store.Directory
apply
(SharedEntity.TypeDescriptor<?> type) Resolves an outputwhere an input is given. getIndexPath
(SharedEntity.TypeDescriptor<?> type) Returns relative subpath of index dir fortype
within index root directory
-
Constructor Details
-
IndexPathDirectoryFactory
public IndexPathDirectoryFactory(IndexPathManager pathManager, LuceneDirectoryUtils luceneDirectoryUtils)
-
-
Method Details