public class LuceneDirectoryUtilsImpl extends Object implements LuceneDirectoryUtils
| Constructor and Description |
|---|
LuceneDirectoryUtilsImpl() |
| 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.
|
public org.apache.lucene.store.Directory getDirectory(File path)
LuceneDirectoryUtilsgetDirectory in interface LuceneDirectoryUtilspath - to the index directory.Directorypublic org.apache.lucene.index.IndexDeletionPolicy getDeletionPolicy(org.apache.lucene.store.Directory directory)
LuceneDirectoryUtilsIndexDeletionPolicy for directorygetDeletionPolicy in interface LuceneDirectoryUtilsSnapshotDeletionPolicy if directory is an instance of FSDirectory otherwise returns KeepOnlyLastCommitDeletionPolicyCopyright © 2002-2024 Atlassian. All Rights Reserved.