public class TempIndexWriterStrategy extends Object implements WriterStrategy
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 and Description |
---|
TempIndexWriterStrategy(com.atlassian.core.util.ProgressWrapper progressWrapper,
com.atlassian.bonnie.ILuceneConnection luceneConnection,
BootstrapManager bootstrapManager,
com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory) |
Modifier and Type | Method and Description |
---|---|
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
|
public TempIndexWriterStrategy(com.atlassian.core.util.ProgressWrapper progressWrapper, com.atlassian.bonnie.ILuceneConnection luceneConnection, BootstrapManager bootstrapManager, com.atlassian.bonnie.analyzer.LuceneAnalyzerFactory analyzerFactory)
public void perform(com.atlassian.bonnie.ILuceneConnection.WriterAction writerAction)
WriterStrategy
perform
in interface WriterStrategy
public void mergeAndClose()
public void discardAndClose()
Copyright © 2003–2019 Atlassian. All rights reserved.