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.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.
-
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:LuceneDirectoryUtilsCreates an index directory for the given path on the filesystem.- Specified by:
getDirectoryin 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:LuceneDirectoryUtilsReturns theIndexDeletionPolicyfordirectory- Specified by:
getDeletionPolicyin interfaceLuceneDirectoryUtils- Returns:
- Returns
SnapshotDeletionPolicyifdirectoryis an instance ofFSDirectoryotherwise returnsKeepOnlyLastCommitDeletionPolicy
-