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 Summary
Modifier and TypeMethodDescriptioncreateEntityLoader
(Set<? extends PojoLoadingTypeContext<? extends E>> expectedTypes, PojoMassEntityLoadingContext<E> context) createIdentifierLoader
(Set<? extends PojoLoadingTypeContext<? extends E>> expectedTypes, PojoMassIdentifierLoadingContext<I> context) boolean
boolean
groupingAllowed
(PojoLoadingTypeContext<? extends E> type, PojoMassLoadingContext context) int
hashCode()
-
Method Details
-
equals
-
hashCode
int hashCode() -
groupingAllowed
- 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 beassigned 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 beassigned this strategy
.context
- A context, used to retrieve information about the loading environment and options.- Returns:
- An entity loader.
-