Package org.hibernate.search.backend

Examples of org.hibernate.search.backend.FlushLuceneWork


  @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

TOP

Related Classes of org.hibernate.search.backend.FlushLuceneWork

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.