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)
LuceneDirectoryUtils
getDirectory
in interface LuceneDirectoryUtils
path
- to the index directory.Directory
public org.apache.lucene.index.IndexDeletionPolicy getDeletionPolicy(org.apache.lucene.store.Directory directory)
LuceneDirectoryUtils
IndexDeletionPolicy
for directory
getDeletionPolicy
in interface LuceneDirectoryUtils
SnapshotDeletionPolicy
if directory
is an instance of FSDirectory
otherwise returns KeepOnlyLastCommitDeletionPolicy
Copyright © 2002-2021 Atlassian. All Rights Reserved.
View cookie preferences