Package com.atlassian.jira.util
Interface LuceneDirectoryUtils
- All Known Implementing Classes:
LuceneDirectoryUtilsImpl
@InjectableComponent
@Deprecated(since="10.4",
forRemoval=true)
public interface LuceneDirectoryUtils
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4
- Since:
- v5.0
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.lucene.index.IndexDeletionPolicygetDeletionPolicy(org.apache.lucene.store.Directory directory) Deprecated, for removal: This API element is subject to removal in a future version.Returns theIndexDeletionPolicyfordirectoryorg.apache.lucene.store.DirectorygetDirectory(File path) Deprecated, for removal: This API element is subject to removal in a future version.Creates an index directory for the given path on the filesystem.
-
Method Details
-
getDirectory
Deprecated, for removal: This API element is subject to removal in a future version.Creates an index directory for the given path on the filesystem.- Parameters:
path- to the index directory.- Returns:
- an implementation of
Directory - Throws:
IOException- if there is a problem when creating the index directory for the given path.
-
getDeletionPolicy
org.apache.lucene.index.IndexDeletionPolicy getDeletionPolicy(org.apache.lucene.store.Directory directory) Deprecated, for removal: This API element is subject to removal in a future version.Returns theIndexDeletionPolicyfordirectory
-