public class ExplicitOnlyOptimizerStrategy extends Object implements OptimizerStrategy
SearchFactory.optimize() or
SearchFactory.optimize(Class)| Constructor and Description |
|---|
ExplicitOnlyOptimizerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
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(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. |
protected String indexName
public boolean performOptimization(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 writertrue if optimisation occurred, false otherwisepublic void addOperationWithinTransactionCount(long operations)
OptimizerStrategyaddOperationWithinTransactionCount in interface OptimizerStrategyoperations - operation countpublic void optimize(Workspace workspace)
OptimizerStrategyoptimize in interface OptimizerStrategyworkspace - the current work spacepublic 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 propertiesCopyright © 2006-2015 Red Hat, Inc. All Rights Reserved