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 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.
  • Method Details

    • getDirectory

      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.
      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 the IndexDeletionPolicy for directory