|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OptimizerStrategy
Controls how and when the indexes are optimized. Implementations need to be threadsafe.
Method Summary | |
---|---|
void |
addOperationWithinTransactionCount(long increment)
To count the amount of operations which where applied to the index. |
void |
initialize(IndexManager indexManager,
Properties indexProperties)
Initializes the OptimizerStrategy . |
void |
optimize(Workspace workspace)
Allows the implementation to start an optimization process. |
boolean |
performOptimization(org.apache.lucene.index.IndexWriter writer)
Invokes optimize on the IndexWriter; This is invoked when an optimization has been explicitly requested by the user API using SearchFactory.optimize() or SearchFactory.optimize(Class) ,
or at the start or end of a MassIndexer's work. |
Method Detail |
---|
boolean performOptimization(org.apache.lucene.index.IndexWriter writer)
SearchFactory.optimize()
or SearchFactory.optimize(Class)
,
or at the start or end of a MassIndexer's work.
writer
- the index writer
true
if optimisation occurred, false
otherwise
SearchException
- in case of IO errors on the indexvoid addOperationWithinTransactionCount(long increment)
increment
- operation countvoid optimize(Workspace workspace)
workspace
- the current work spacevoid initialize(IndexManager indexManager, Properties indexProperties)
OptimizerStrategy
. Is called once at the initialisation of the strategy.
indexManager
- the index manager for which this strategy appliesindexProperties
- the configuration properties
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |