Interface PojoMassLoadingStrategy<E,I>

Type Parameters:
E - The type of loaded entities.
I - The type of entity identifiers.
All Known Subinterfaces:
HibernateOrmEntityLoadingStrategy<E,I>

public interface PojoMassLoadingStrategy<E,I>
A strategy for entity loading during mass indexing.
  • Method Details

    • equals

      boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj - Another strategy
      Returns:
      true if the other strategy targets the same entity hierarchy and can be used as a replacement for this one. false otherwise or when unsure.
    • hashCode

      int hashCode()
      Overrides:
      hashCode in class Object
    • groupingAllowed

      boolean groupingAllowed(PojoLoadingTypeContext<? extends E> type, PojoMassLoadingContext context)
      Parameters:
      type - A type that Hibernate Search would like to load together with another one that uses the same strategy.
      context - Mapper-specific loading context.
      Returns:
      true if this type
    • createIdentifierLoader

      PojoMassIdentifierLoader createIdentifierLoader(Set<? extends PojoLoadingTypeContext<? extends E>> expectedTypes, PojoMassIdentifierLoadingContext<I> context)
      Parameters:
      expectedTypes - The expected types of loaded entities. The types are guaranteed to be assigned this strategy.
      context - A context, used to retrieve information about the loading environment and options.
      Returns:
      An entity identifier loader.
    • createEntityLoader

      PojoMassEntityLoader<I> createEntityLoader(Set<? extends PojoLoadingTypeContext<? extends E>> expectedTypes, PojoMassEntityLoadingContext<E> context)
      Parameters:
      expectedTypes - The expected types of loaded entities. The types are guaranteed to be assigned this strategy.
      context - A context, used to retrieve information about the loading environment and options.
      Returns:
      An entity loader.