|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.search.lucene.TempIndexWriterStrategy
public class TempIndexWriterStrategy
Writer strategy that uses the TempIndexWriter
. All writer actions
will be committed to temporary indexes. Once all writer actions have been
completed, ensure mergeAndClose()
is called. This will cause all
temp indexes to be merged to the ILuceneConnection
.
Constructor Summary | |
---|---|
TempIndexWriterStrategy(com.atlassian.core.util.ProgressWrapper progressWrapper,
com.atlassian.bonnie.ILuceneConnection luceneConnection,
BootstrapManager bootstrapManager,
com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
|
Method Summary | |
---|---|
void |
discardAndClose()
Discards the temp indexes and closes connections and writers. |
void |
mergeAndClose()
Merges the temp indexes to the main index and closes connections and writers. |
void |
perform(com.atlassian.bonnie.ILuceneConnection.WriterAction writerAction)
Perform the specified action |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TempIndexWriterStrategy(com.atlassian.core.util.ProgressWrapper progressWrapper, com.atlassian.bonnie.ILuceneConnection luceneConnection, BootstrapManager bootstrapManager, com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
Method Detail |
---|
public void perform(com.atlassian.bonnie.ILuceneConnection.WriterAction writerAction)
WriterStrategy
perform
in interface WriterStrategy
public void mergeAndClose()
public void discardAndClose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |