Examples of WorkQueuePerIndexSplitter


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

    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
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.