Package org.hibernate.search.backend.impl.lucene.works

Examples of org.hibernate.search.backend.impl.lucene.works.LuceneWorkVisitor


  private final boolean exclusiveIndexUsage;
  private final ErrorHandler errorHandler;
 
  PerDPResources(WorkerBuildContext context, DirectoryProvider<?> dp) {
    workspace = new Workspace( context, dp );
    visitor = new LuceneWorkVisitor( workspace, context );
    executor = Executors.newFixedThreadPool( 1, "Directory writer" );
    exclusiveIndexUsage = context.isExclusiveIndexUsageEnabled( dp );
    errorHandler = context.getErrorHandler();
  }
View Full Code Here


    if ( maxThreads < 1 ) {
      throw new IllegalArgumentException( "maxThreads needs to be at least 1" );
    }
    this.monitor = monitor;
    workspace = new Workspace( context, dp );
    visitor = new LuceneWorkVisitor( workspace, context );
    executor = Executors.newFixedThreadPool( maxThreads, "indexwriter" );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.impl.lucene.works.LuceneWorkVisitor

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.