Class AbstractPojoMappingImplementor<M>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor<M>
-
- All Implemented Interfaces:
BackendMappingContext,MappingImplementor<M>,BridgeMappingContext,PojoMassIndexingMappingContext,PojoScopeMappingContext,PojoSearchSessionMappingContext,PojoWorkMappingContext
- Direct Known Subclasses:
HibernateOrmMapping
public abstract class AbstractPojoMappingImplementor<M> extends Object implements MappingImplementor<M>, PojoScopeMappingContext, PojoSearchSessionMappingContext
-
-
Constructor Summary
Constructors Constructor Description AbstractPojoMappingImplementor(PojoMappingDelegate delegate)AbstractPojoMappingImplementor(PojoMappingDelegate delegate, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate)Deprecated.
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.engine.backend.mapping.spi.BackendMappingContext
mappedTypeContext
-
Methods inherited from interface org.hibernate.search.engine.mapper.mapping.spi.MappingImplementor
toConcreteType
-
Methods inherited from interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
createMassIndexerAgent
-
-
-
-
Constructor Detail
-
AbstractPojoMappingImplementor
public AbstractPojoMappingImplementor(PojoMappingDelegate delegate)
-
AbstractPojoMappingImplementor
@Deprecated public AbstractPojoMappingImplementor(PojoMappingDelegate delegate, PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate)
Deprecated.UseAbstractPojoMappingImplementor. This constructor is only present for backwards compatibility, for mappers that expose a custom entity reference type.- Parameters:
delegate- ThePojoMappingDelegateentityReferenceFactoryDelegate- ThePojoEntityReferenceFactoryDelegate, used to implement theEntityReferenceFactory.
-
-
Method Detail
-
start
public CompletableFuture<?> start(MappingStartContext context)
Description copied from interface:MappingImplementorStart any resource necessary to operate the mapping at runtime.Called by the engine once during bootstrap, after backends and index managers were started.
- Specified by:
startin interfaceMappingImplementor<M>- Parameters:
context- The start context.- Returns:
- A future that completes when the mapper is completely started.
-
preStop
public CompletableFuture<?> preStop(MappingPreStopContext context)
Description copied from interface:MappingImplementorPrepare forMappingImplementor.stop(), executing any operations that needs to be executed before shutdown.- Specified by:
preStopin interfaceMappingImplementor<M>- Parameters:
context- The pre-stop context.- Returns:
- A future that completes when pre-stop operations complete.
-
stop
public void stop()
Description copied from interface:MappingImplementorStop and release any resource necessary to operate the mapping at runtime.Called by the engine once before shutdown.
- Specified by:
stopin interfaceMappingImplementor<M>
-
hints
public BackendMappingHints hints()
- Specified by:
hintsin interfaceBackendMappingContext
-
threadPoolProvider
public ThreadPoolProvider threadPoolProvider()
- Specified by:
threadPoolProviderin interfacePojoMassIndexingMappingContext- Returns:
- A
ThreadPoolProvider.
-
failureHandler
public FailureHandler failureHandler()
- Specified by:
failureHandlerin interfacePojoMassIndexingMappingContext- Returns:
- A
FailureHandler.
-
entityReferenceFactoryDelegate
public final PojoEntityReferenceFactoryDelegate entityReferenceFactoryDelegate()
- Specified by:
entityReferenceFactoryDelegatein interfacePojoMassIndexingMappingContext- Specified by:
entityReferenceFactoryDelegatein interfacePojoScopeMappingContext- Specified by:
entityReferenceFactoryDelegatein interfacePojoWorkMappingContext- Returns:
- A
PojoEntityReferenceFactoryDelegate.
-
entityReferenceFactory
public final EntityReferenceFactory entityReferenceFactory()
- Specified by:
entityReferenceFactoryin interfaceBackendMappingContext- Returns:
- A
EntityReferenceFactory.
-
toDocumentValueConvertContext
public final ToDocumentValueConvertContext toDocumentValueConvertContext()
- Specified by:
toDocumentValueConvertContextin interfaceBackendMappingContext
-
projectionRegistry
public ProjectionRegistry projectionRegistry()
- Specified by:
projectionRegistryin interfaceBackendMappingContext
-
identifierBridgeToDocumentIdentifierContext
public final IdentifierBridgeToDocumentIdentifierContext identifierBridgeToDocumentIdentifierContext()
- Specified by:
identifierBridgeToDocumentIdentifierContextin interfaceBridgeMappingContext
-
valueBridgeToIndexedValueContext
public ValueBridgeToIndexedValueContext valueBridgeToIndexedValueContext()
- Specified by:
valueBridgeToIndexedValueContextin interfaceBridgeMappingContext
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
- Specified by:
createIndexingPlanin interfacePojoSearchSessionMappingContext
-
createIndexingPlan
public PojoIndexingPlan createIndexingPlan(PojoWorkSessionContext context, PojoIndexingQueueEventSendingPlan sendingPlan)
- Specified by:
createIndexingPlanin interfacePojoSearchSessionMappingContext
-
createIndexer
public PojoIndexer createIndexer(PojoWorkSessionContext context)
- Specified by:
createIndexerin interfacePojoSearchSessionMappingContext
-
createIndexingQueueEventProcessingPlan
public PojoIndexingQueueEventProcessingPlan createIndexingQueueEventProcessingPlan(PojoWorkSessionContext context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy, PojoIndexingQueueEventSendingPlan sendingPlan)
- Specified by:
createIndexingQueueEventProcessingPlanin interfacePojoSearchSessionMappingContext
-
delegate
protected final PojoMappingDelegate delegate()
-
doStop
protected void doStop()
-
-