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

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 the IndexDeletionPolicy for directory
    org.apache.lucene.store.Directory
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LuceneDirectoryUtilsImpl

      public LuceneDirectoryUtilsImpl()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getDirectory

      public org.apache.lucene.store.Directory getDirectory(File path)
      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 interface LuceneDirectoryUtils
      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 the IndexDeletionPolicy for directory
      Specified by:
      getDeletionPolicy in interface LuceneDirectoryUtils
      Returns:
      Returns SnapshotDeletionPolicy if directory is an instance of FSDirectory otherwise returns KeepOnlyLastCommitDeletionPolicy