public static OptimizerStrategy getOptimizerStrategy(IndexManager callback, Properties indexProps) {
boolean incremental = indexProps.containsKey( "optimizer.operation_limit.max" )
|| indexProps.containsKey( "optimizer.transaction_limit.max" );
OptimizerStrategy optimizerStrategy;
if ( incremental ) {
optimizerStrategy = new IncrementalOptimizerStrategy();
optimizerStrategy.initialize( callback, indexProps );
}
else {
optimizerStrategy = new NoOpOptimizerStrategy();
}