Class AbstractPojoMappingImplementor<M>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor<M>
-
- All Implemented Interfaces:
BackendMappingContext
,MappingImplementor<M>
,BridgeMappingContext
,PojoScopeMappingContext
,PojoSearchSessionMappingContext
,PojoWorkMappingContext
public abstract class AbstractPojoMappingImplementor<M> extends Object implements MappingImplementor<M>, PojoScopeMappingContext, PojoSearchSessionMappingContext
-
-
Constructor Summary
Constructors Constructor Description AbstractPojoMappingImplementor(PojoMappingDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PojoIndexer
createIndexer(PojoWorkSessionContext<?> context)
<R> PojoIndexingPlan<R>
createIndexingPlan(PojoWorkSessionContext<R> context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
protected PojoMappingDelegate
delegate()
protected void
doStop()
IdentifierBridgeToDocumentIdentifierContext
identifierBridgeToDocumentIdentifierContext()
CompletableFuture<?>
preStop(MappingPreStopContext context)
Prepare forMappingImplementor.stop()
, executing any operations that needs to be executed before shutdown.CompletableFuture<?>
start(MappingStartContext context)
Start any resource necessary to operate the mapping at runtime.void
stop()
Stop and release any resource necessary to operate the mapping at runtime.ValueBridgeToIndexedValueContext
valueBridgeToIndexedValueContext()
-
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.mapper.mapping.spi.MappingImplementor
toConcreteType
-
-
-
-
Constructor Detail
-
AbstractPojoMappingImplementor
public AbstractPojoMappingImplementor(PojoMappingDelegate delegate)
-
-
Method Detail
-
start
public CompletableFuture<?> start(MappingStartContext context)
Description copied from interface:MappingImplementor
Start 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:
start
in 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:MappingImplementor
Prepare forMappingImplementor.stop()
, executing any operations that needs to be executed before shutdown.- Specified by:
preStop
in 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:MappingImplementor
Stop and release any resource necessary to operate the mapping at runtime.Called by the engine once before shutdown.
- Specified by:
stop
in interfaceMappingImplementor<M>
-
identifierBridgeToDocumentIdentifierContext
public final IdentifierBridgeToDocumentIdentifierContext identifierBridgeToDocumentIdentifierContext()
- Specified by:
identifierBridgeToDocumentIdentifierContext
in interfaceBridgeMappingContext
-
valueBridgeToIndexedValueContext
public ValueBridgeToIndexedValueContext valueBridgeToIndexedValueContext()
- Specified by:
valueBridgeToIndexedValueContext
in interfaceBridgeMappingContext
-
createIndexingPlan
public <R> PojoIndexingPlan<R> createIndexingPlan(PojoWorkSessionContext<R> context, DocumentCommitStrategy commitStrategy, DocumentRefreshStrategy refreshStrategy)
- Specified by:
createIndexingPlan
in interfacePojoSearchSessionMappingContext
-
createIndexer
public PojoIndexer createIndexer(PojoWorkSessionContext<?> context)
- Specified by:
createIndexer
in interfacePojoSearchSessionMappingContext
-
delegate
protected final PojoMappingDelegate delegate()
-
doStop
protected void doStop()
-
-