@InjectableComponent public interface LuceneDirectoryUtils
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.index.IndexDeletionPolicy |
getDeletionPolicy(org.apache.lucene.store.Directory directory)
Returns the
IndexDeletionPolicy for directory |
org.apache.lucene.store.Directory |
getDirectory(File path)
Creates an index directory for the given path on the filesystem.
|
org.apache.lucene.store.Directory getDirectory(File path)
path
- to the index directory.Directory
IOException
- if there is a problem when creating the index directory for the given path.org.apache.lucene.index.IndexDeletionPolicy getDeletionPolicy(org.apache.lucene.store.Directory directory)
IndexDeletionPolicy
for directory
Copyright © 2002-2022 Atlassian. All Rights Reserved.