|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.search.store.optimization.impl.ExplicitOnlyOptimizerStrategy
public class ExplicitOnlyOptimizerStrategy
This OptimizerStrategy will only optimize the index when forced to,
using an explicit invocation to SearchFactory.optimize() or
SearchFactory.optimize(Class)
| Field Summary | |
|---|---|
protected String |
indexName
|
| Constructor Summary | |
|---|---|
ExplicitOnlyOptimizerStrategy()
|
|
| Method Summary | |
|---|---|
void |
addOperationWithinTransactionCount(long operations)
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String indexName
| Constructor Detail |
|---|
public ExplicitOnlyOptimizerStrategy()
| Method Detail |
|---|
public boolean performOptimization(org.apache.lucene.index.IndexWriter writer)
OptimizerStrategySearchFactory.optimize() or SearchFactory.optimize(Class),
or at the start or end of a MassIndexer's work.
performOptimization in interface OptimizerStrategywriter - the index writer
true if optimisation occurred, false otherwisepublic void addOperationWithinTransactionCount(long operations)
OptimizerStrategy
addOperationWithinTransactionCount in interface OptimizerStrategyoperations - operation countpublic void optimize(Workspace workspace)
OptimizerStrategy
optimize in interface OptimizerStrategyworkspace - the current work space
public void initialize(IndexManager indexManager,
Properties indexProperties)
OptimizerStrategyOptimizerStrategy. Is called once at the initialisation of the strategy.
initialize in interface OptimizerStrategyindexManager - 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 | |||||||||