Package org.hibernate.search.backend.impl.batchlucene

Examples of org.hibernate.search.backend.impl.batchlucene.BatchBackend


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

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here


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

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = PluginLoader.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

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

  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 LuceneBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties cfg = this.configurationProperties;
    if ( forceToNumWriterThreads != null ) {
      cfg = new Properties( cfg );
      cfg.put( LuceneBatchBackend.CONCURRENT_WRITERS, forceToNumWriterThreads.toString() );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        cfg, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

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

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

    } //read barrier
    return indexHierarchy.getIndexedClasses( classes );
  }
 
  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = PluginLoader.instanceFromName( BatchBackend.class, impl, SearchFactoryImpl.class,
          "batchbackend" );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

    } //read barrier
    return indexHierarchy.getIndexedClasses( classes );
  }
 
  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = PluginLoader.instanceFromName( BatchBackend.class, impl, SearchFactoryImpl.class,
          "batchbackend" );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

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

  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 LuceneBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties cfg = this.configurationProperties;
    if ( forceToNumWriterThreads != null ) {
      cfg = new Properties( cfg );
      cfg.put( LuceneBatchBackend.CONCURRENT_WRITERS, forceToNumWriterThreads.toString() );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        cfg, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

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

  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 LuceneBatchBackend();
    }
    else {
      batchBackend = ClassLoaderHelper.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties cfg = this.configurationProperties;
    if ( forceToNumWriterThreads != null ) {
      cfg = new Properties( cfg );
      cfg.put( LuceneBatchBackend.CONCURRENT_WRITERS, forceToNumWriterThreads.toString() );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        cfg, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

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

  public BatchBackend makeBatchBackend(MassIndexerProgressMonitor progressMonitor) {
    BatchBackend batchBackend;
    String impl = configurationProperties.getProperty( Environment.BATCH_BACKEND );
    if ( StringHelper.isEmpty( impl ) || "LuceneBatch".equalsIgnoreCase( impl ) ) {
      batchBackend = new LuceneBatchBackend();
    }
    else {
      batchBackend = PluginLoader.instanceFromName(
          BatchBackend.class, impl, ImmutableSearchFactory.class,
          "batchbackend"
      );
    }
    Properties batchBackendConfiguration = new MaskedProperty(
        this.configurationProperties, Environment.BATCH_BACKEND
    );
    batchBackend.initialize( batchBackendConfiguration, progressMonitor, this );
    return batchBackend;
  }
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.impl.batchlucene.BatchBackend

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.