Class HibernateOrmMassIndexingContext
- java.lang.Object
-
- org.hibernate.search.mapper.orm.massindexing.impl.HibernateOrmMassIndexingContext
-
- All Implemented Interfaces:
HibernateOrmMassLoadingOptions,PojoMassIndexingContext
public final class HibernateOrmMassIndexingContext extends Object implements PojoMassIndexingContext, HibernateOrmMassLoadingOptions
-
-
Constructor Summary
Constructors Constructor Description HibernateOrmMassIndexingContext(HibernateOrmMassIndexingMappingContext mappingContext, HibernateOrmSessionTypeContextProvider typeContextContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.CacheModecacheMode()voidcacheMode(org.hibernate.CacheMode cacheMode)intidFetchSize()voididFetchSize(int idFetchSize)IntegeridLoadingTransactionTimeout()voididLoadingTransactionTimeout(int timeoutInSeconds)<T> PojoMassIndexingLoadingStrategy<? super T,?>loadingStrategy(PojoRawTypeIdentifier<T> expectedType)intobjectLoadingBatchSize()voidobjectLoadingBatchSize(int batchSize)longobjectsLimit()voidobjectsLimit(long maximum)
-
-
-
Constructor Detail
-
HibernateOrmMassIndexingContext
public HibernateOrmMassIndexingContext(HibernateOrmMassIndexingMappingContext mappingContext, HibernateOrmSessionTypeContextProvider typeContextContainer)
-
-
Method Detail
-
loadingStrategy
public <T> PojoMassIndexingLoadingStrategy<? super T,?> loadingStrategy(PojoRawTypeIdentifier<T> expectedType)
- Specified by:
loadingStrategyin interfacePojoMassIndexingContext- Type Parameters:
T- The exposed type of indexed entities.- Parameters:
expectedType- The expected types of indexed objects.- Returns:
- A loading strategy.
-
idLoadingTransactionTimeout
public void idLoadingTransactionTimeout(int timeoutInSeconds)
-
idLoadingTransactionTimeout
public Integer idLoadingTransactionTimeout()
- Specified by:
idLoadingTransactionTimeoutin interfaceHibernateOrmMassLoadingOptions- Returns:
- the transaction timeout
-
cacheMode
public void cacheMode(org.hibernate.CacheMode cacheMode)
-
cacheMode
public org.hibernate.CacheMode cacheMode()
- Specified by:
cacheModein interfaceHibernateOrmMassLoadingOptions- Returns:
- the
CacheMode
-
objectLoadingBatchSize
public void objectLoadingBatchSize(int batchSize)
-
objectLoadingBatchSize
public int objectLoadingBatchSize()
- Specified by:
objectLoadingBatchSizein interfaceHibernateOrmMassLoadingOptions- Returns:
- how many entities to load and index in each batch.
-
objectsLimit
public void objectsLimit(long maximum)
-
objectsLimit
public long objectsLimit()
- Specified by:
objectsLimitin interfaceHibernateOrmMassLoadingOptions- Returns:
- the objects limit used to load the root entities.
-
idFetchSize
public void idFetchSize(int idFetchSize)
-
idFetchSize
public int idFetchSize()
- Specified by:
idFetchSizein interfaceHibernateOrmMassLoadingOptions- Returns:
- fetch size used to load the root entities.
-
-