Class IncrementalOptimizerStrategy
java.lang.Object
org.hibernate.search.store.optimization.IncrementalOptimizerStrategy
- All Implemented Interfaces:
OptimizerStrategy
Optimization strategy triggered after a certain amount of operations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTransaction(long operations) has to be called in a thread safe wayvoidinitialize(DirectoryProvider directoryProvider, Properties indexProperties, BuildContext context) booleanhas to be called in a thread safe wayvoidhas to be called in a thread safe wayvoidhas to be called in a thread safe way
-
Constructor Details
-
IncrementalOptimizerStrategy
public IncrementalOptimizerStrategy()
-
-
Method Details
-
initialize
public void initialize(DirectoryProvider directoryProvider, Properties indexProperties, BuildContext context) - Specified by:
initializein interfaceOptimizerStrategy
-
optimizationForced
public void optimizationForced()Description copied from interface:OptimizerStrategyhas to be called in a thread safe way- Specified by:
optimizationForcedin interfaceOptimizerStrategy
-
needOptimization
public boolean needOptimization()Description copied from interface:OptimizerStrategyhas to be called in a thread safe way- Specified by:
needOptimizationin interfaceOptimizerStrategy
-
addTransaction
public void addTransaction(long operations) Description copied from interface:OptimizerStrategyhas to be called in a thread safe way- Specified by:
addTransactionin interfaceOptimizerStrategy
-
optimize
Description copied from interface:OptimizerStrategyhas to be called in a thread safe way- Specified by:
optimizein interfaceOptimizerStrategy
-