org.kie.kieora.backend.lucene.setups
Class DirectoryLuceneSetup
java.lang.Object
org.kie.kieora.backend.lucene.setups.BaseLuceneSetup
org.kie.kieora.backend.lucene.setups.DirectoryLuceneSetup
- All Implemented Interfaces:
- LuceneSetup
- Direct Known Subclasses:
- MMapLuceneSetup, NIOLuceneSetup, RAMLuceneSetup
public class DirectoryLuceneSetup
- extends BaseLuceneSetup
|
Constructor Summary |
DirectoryLuceneSetup(org.apache.lucene.store.Directory directory,
boolean freshIndex)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REPOSITORIES_ROOT_DIR
public static final String REPOSITORIES_ROOT_DIR
- See Also:
- Constant Field Values
DirectoryLuceneSetup
public DirectoryLuceneSetup(org.apache.lucene.store.Directory directory,
boolean freshIndex)
writer
public org.apache.lucene.index.IndexWriter writer()
- Specified by:
writer in class BaseLuceneSetup
nrtSearcher
public org.apache.lucene.search.IndexSearcher nrtSearcher()
nrtRelease
public void nrtRelease(org.apache.lucene.search.IndexSearcher searcher)
getAnalyzer
public org.apache.lucene.analysis.Analyzer getAnalyzer()
dispose
public void dispose()
freshIndex
public boolean freshIndex()
commit
public void commit()
freshIndex
protected static boolean freshIndex(File file)
defaultFile
protected static File defaultFile()
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.