org.hibernate.search.batchindexing.spi

## Interface MassIndexerFactory

- All Known Implementing Classes:
    DefaultMassIndexerFactory

      public interface MassIndexerFactory

  Contains methods that can be used to create a `MassIndexer`.
  Since:
    4.3
  Author:
    Davide D'Alto

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static String` | `MASS_INDEXER_FACTORY_CLASSNAME`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `MassIndexer` | `createMassIndexer(SearchIntegrator searchIntegrator, SessionFactoryImplementor sessionFactory, Class<?>... entities)` Create an instance of a `MassIndexer`.
    `void` | `initialize(Properties properties)` Called after the creation of the factory, can be used to read configuration parameters.

- - ### Field Detail

    - #### MASS_INDEXER_FACTORY_CLASSNAME

          static final String MASS_INDEXER_FACTORY_CLASSNAME

      See Also:
        Constant Field Values

  - ### Method Detail

    - #### initialize

          void initialize(Properties properties)

      Called after the creation of the factory, can be used to read configuration parameters.
      Parameters:
        `properties` - configuration properties

    - #### createMassIndexer

          MassIndexer createMassIndexer(SearchIntegrator searchIntegrator,
                                        SessionFactoryImplementor sessionFactory,
                                        Class<?>... entities)

      Create an instance of a `MassIndexer`.
      Parameters:
        `searchIntegrator` - the Hibernate Search factory
        `sessionFactory` - the `Session` factory
        `entities` - the classes of the entities that are going to be indexed
      Returns:
        a new `MassIndexer`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved