org.hibernate.search.store.optimization
public interface OptimizerStrategy
| Modifier and Type | Method and Description |
|---|---|
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(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. |
boolean performOptimization(IndexWriter writer)
SearchFactory.optimize() or SearchFactory.optimize(Class),
or at the start or end of a MassIndexer's work.writer - the index writertrue if optimisation occurred, false otherwiseSearchException - 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 propertiesCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved