Package org.hibernate.search.backend.impl.batch

Examples of org.hibernate.search.backend.impl.batch.DefaultBatchBackend


   public void initialize(Cache<?, ?> inputCache) {
      QueryInterceptor queryInterceptor = ComponentRegistryUtils.getQueryInterceptor(inputCache);
      searchFactory = queryInterceptor.getSearchFactory();
      progressMonitor = new DefaultMassIndexerProgressMonitor(inputCache.getAdvancedCache().getComponentRegistry()
                                                                         .getTimeService());
      defaultBatchBackend = new DefaultBatchBackend(searchFactory, progressMonitor);
   }
View Full Code Here


    return indexHierarchy.getIndexedClasses( classes );
  }

  @Override
  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

  public Set<Class<?>> getIndexedTypesPolymorphic(Class<?>[] classes) {
    return indexHierarchy.getIndexedClasses( classes );
  }

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

  public Set<Class<?>> getIndexedTypesPolymorphic(Class<?>[] classes) {
    return indexHierarchy.getIndexedClasses( classes );
  }

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

      queryInterceptor.purgeAllIndexes();
   }

   private void flush() {
      DefaultMassIndexerProgressMonitor progressMonitor = new DefaultMassIndexerProgressMonitor(cache.getAdvancedCache().getComponentRegistry().getTimeService());
      new DefaultBatchBackend(searchFactory, progressMonitor).flush(searchFactory.getIndexedTypes());
   }
View Full Code Here

      this.cache = inputCache.getAdvancedCache();
      this.queryInterceptor = ComponentRegistryUtils.getQueryInterceptor(cache);
      this.searchFactory = queryInterceptor.getSearchFactory();
      this.keyTransformationHandler = queryInterceptor.getKeyTransformationHandler();
      this.progressMonitor = new DefaultMassIndexerProgressMonitor(inputCache.getAdvancedCache().getComponentRegistry().getTimeService());
      this.defaultBatchBackend = new DefaultBatchBackend(searchFactory, progressMonitor);
   }
View Full Code Here

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor, Integer forceToNumWriterThreads) {
    final BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new DefaultBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
View Full Code Here

  public Set<Class<?>> getIndexedTypesPolymorphic(Class<?>[] classes) {
    return indexHierarchy.getIndexedClasses( classes );
  }

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

    return indexHierarchy.getIndexedClasses( classes );
  }

  @Override
  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

    return indexHierarchy.getIndexedClasses( classes );
  }

  @Override
  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    return new DefaultBatchBackend( this, progressMonitor );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.impl.batch.DefaultBatchBackend

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.