public class IncrementalOptimizerStrategy extends ExplicitOnlyOptimizerStrategy implements OptimizerStrategy
indexName| Constructor and Description |
|---|
IncrementalOptimizerStrategy() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOperationWithinTransactionCount(long operations)
To count the amount of operations which where applied to the index.
|
long |
getOptimizationsPerformed() |
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
SearchIntegrator.optimize() or SearchIntegrator.optimize(Class),
or at the start or end of a MassIndexer's work. |
public boolean performOptimization(IndexWriter writer)
OptimizerStrategySearchIntegrator.optimize() or SearchIntegrator.optimize(Class),
or at the start or end of a MassIndexer's work.performOptimization in interface OptimizerStrategyperformOptimization in class ExplicitOnlyOptimizerStrategywriter - the index writertrue if optimisation occurred, false otherwisepublic void addOperationWithinTransactionCount(long operations)
OptimizerStrategyaddOperationWithinTransactionCount in interface OptimizerStrategyaddOperationWithinTransactionCount in class ExplicitOnlyOptimizerStrategyoperations - operation countpublic void optimize(Workspace workspace)
OptimizerStrategyoptimize in interface OptimizerStrategyoptimize in class ExplicitOnlyOptimizerStrategyworkspace - the current work spacepublic void initialize(IndexManager indexManager, Properties indexProperties)
OptimizerStrategyOptimizerStrategy. Is called once at the initialisation of the strategy.initialize in interface OptimizerStrategyinitialize in class ExplicitOnlyOptimizerStrategyindexManager - the index manager for which this strategy appliesindexProperties - the configuration propertiespublic long getOptimizationsPerformed()
Copyright © 2006-2015 Red Hat, Inc. All Rights Reserved