Package org.hibernate.search.store.optimization

Examples of org.hibernate.search.store.optimization.OptimizerStrategy.optimize()


        Workspace.DPStatistics stats = dpStatistics.get( provider );
        if ( !stats.optimizationForced ) {
          OptimizerStrategy optimizerStrategy = searchFactoryImplementor.getOptimizerStrategy( provider );
          optimizerStrategy.addTransaction( stats.operations );
          try {
            optimizerStrategy.optimize( this );
          }
          catch (SearchException e) {
            raisedException = new SearchException( "Exception while optimizing directoryProvider: "
                + provider.getDirectory().toString(), e );
            break; //no point in continuing
View Full Code Here


      if ( space.needsOptimization() ) {
        if ( raisedException == null ) {//avoid optimizations in case of errors or exceptions
          OptimizerStrategy optimizerStrategy = space.getOptimizerStrategy();
          optimizerStrategy.addTransaction( space.countOperations() );
          try {
            optimizerStrategy.optimize( this );
          }
          catch (SearchException e) {
            //this will also cause skipping other optimizations:
            raisedException = new SearchException( "Exception while optimizing directoryProvider: "
                + space.getDirectory().toString(), e );
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.