Package org.hibernate.search.backend.impl

Examples of org.hibernate.search.backend.impl.WorkQueuePerIndexSplitter$WorkPlan


    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here


    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    IndexShardingStrategy shardingStrategy = entityIndexBinding.getSelectionStrategy();
    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE ).performStreamOperation( work, shardingStrategy, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE ).performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations(); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    IndexShardingStrategy shardingStrategy = entityIndexBinding.getSelectionStrategy();
    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE ).performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE ).performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

  @Override
  public void flush(Class<?> entityType) {
    EntityIndexBinder entityIndexBinding = searchFactoryImplementor.getIndexBindingForEntity( entityType );
    IndexShardingStrategy shardingStrategy = entityIndexBinding.getSelectionStrategy();
    WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
    FlushLuceneWork flushOperation = new FlushLuceneWork();
    flushOperation.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
        .performOperation( flushOperation, shardingStrategy, workContext );
  }
View Full Code Here

    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE )
          .performStreamOperation( work, shardingStrategy, progressMonitor, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE )
          .performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations( progressMonitor ); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

    IndexShardingStrategy shardingStrategy = entityIndexBinding.getSelectionStrategy();
    if ( forceAsync ) {
      work.getWorkDelegate( StreamingSelectionVisitor.INSTANCE ).performStreamOperation( work, shardingStrategy, forceAsync );
    }
    else {
      WorkQueuePerIndexSplitter workContext = new WorkQueuePerIndexSplitter();
      work.getWorkDelegate( TransactionalSelectionVisitor.INSTANCE ).performOperation( work, shardingStrategy, workContext );
      workContext.commitOperations(); //FIXME I need a "Force sync" actually for when using PurgeAll before the indexing starts
    }
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.impl.WorkQueuePerIndexSplitter$WorkPlan

Copyright © 2018 www.massapicom. 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.