Package com.atlassian.jira.util
Class LuceneDirectoryUtilsImpl
java.lang.Object
com.atlassian.jira.util.LuceneDirectoryUtilsImpl
- All Implemented Interfaces:
LuceneDirectoryUtils
@Deprecated(since="10.4",
forRemoval=true)
public class LuceneDirectoryUtilsImpl
extends Object
implements LuceneDirectoryUtils
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4
- Since:
- v5.0
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionorg.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 theIndexDeletionPolicy
fordirectory
org.apache.lucene.store.Directory
getDirectory
(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.
-
Constructor Details
-
LuceneDirectoryUtilsImpl
public LuceneDirectoryUtilsImpl()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getDirectory
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:LuceneDirectoryUtils
Creates an index directory for the given path on the filesystem.- Specified by:
getDirectory
in interfaceLuceneDirectoryUtils
- Parameters:
path
- to the index directory.- Returns:
- an implementation of
Directory
-
getDeletionPolicy
public 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.Description copied from interface:LuceneDirectoryUtils
Returns theIndexDeletionPolicy
fordirectory
- Specified by:
getDeletionPolicy
in interfaceLuceneDirectoryUtils
- Returns:
- Returns
SnapshotDeletionPolicy
ifdirectory
is an instance ofFSDirectory
otherwise returnsKeepOnlyLastCommitDeletionPolicy
-