Class InfinispanMapping
java.lang.Object
org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor<SearchMapping>
org.infinispan.search.mapper.mapping.impl.InfinispanMapping
- All Implemented Interfaces:
AutoCloseable,EntityReferenceFactory,BackendMappingContext,MappingImplementor<SearchMapping>,BridgeMappingContext,PojoMassIndexingMappingContext,PojoScopeMappingContext,PojoSearchSessionMappingContext,PojoWorkMappingContext,SearchMapping,InfinispanSearchSessionMappingContext
public class InfinispanMapping
extends AbstractPojoMappingImplementor<SearchMapping>
implements SearchMapping, InfinispanSearchSessionMappingContext, EntityReferenceFactory
-
Method Summary
Modifier and TypeMethodDescriptionCollection<? extends SearchIndexedEntity>voidclose()createEntityReference(String typeName, Object identifier) Creates aPojoMassIndexerAgent, able to exert control over other agents that could perform indexing concurrently (e.g. indexing plans).<E> SearchScopeImpl<E>createScope(Class<E> expectedSuperType, Collection<String> entityNames) <E> SearchScopeImpl<E>createScope(Collection<? extends Class<? extends E>> classes) intOptional<SearchScope<?>>intindexedEntity(Class<?> entityType) indexedEntity(String entityName) booleanisClose()<E> SearchScope<E>scope(Collection<? extends Class<? extends E>> targetedTypes) Create aSearchScopelimited to the given types.SearchScope<?>scopeAll()voidsetIntegration(SearchIntegration integration) voidstart()booleantypeIsIndexed(Object value) booleantypeIsIndexed(Object value, Collection<Class<?>> restricted) Methods inherited from class org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor
createIndexer, createIndexingPlan, createIndexingPlan, createIndexingQueueEventProcessingPlan, delegate, doStop, entityReferenceFactory, entityReferenceFactoryDelegate, hints, identifierBridgeToDocumentIdentifierContext, mappedTypeContext, preStop, projectionRegistry, start, stop, toDocumentValueConvertContext, typeIdentifierResolver, valueBridgeToIndexedValueContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.backend.mapping.spi.BackendMappingContext
entityReferenceFactory, hints, mappedTypeContext, projectionRegistry, toDocumentValueConvertContextMethods inherited from interface org.hibernate.search.mapper.pojo.bridge.runtime.spi.BridgeMappingContext
identifierBridgeToDocumentIdentifierContext, valueBridgeToIndexedValueContextMethods inherited from interface org.hibernate.search.mapper.pojo.scope.spi.PojoScopeMappingContext
entityReferenceFactoryDelegate, typeIdentifierResolverMethods inherited from interface org.hibernate.search.mapper.pojo.session.spi.PojoSearchSessionMappingContext
createIndexer, createIndexingPlan, createIndexingPlan, createIndexingQueueEventProcessingPlanMethods inherited from interface org.infinispan.search.mapper.mapping.SearchMapping
indexedEntitiesForStatistics, isRestarting, reload, restart, scope
-
Method Details
-
start
public void start()- Specified by:
startin interfaceSearchMapping
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceSearchMapping
-
isClose
public boolean isClose()- Specified by:
isClosein interfaceSearchMapping
-
scope
Description copied from interface:SearchMappingCreate aSearchScopelimited to the given types.- Specified by:
scopein interfaceSearchMapping- Type Parameters:
E- An entity to include in the scope.- Parameters:
targetedTypes- A collection of types to include in the scope.- Returns:
- The created scope.
- See Also:
-
findScopeAll
- Specified by:
findScopeAllin interfaceSearchMapping
-
scopeAll
- Specified by:
scopeAllin interfaceSearchMapping
-
getMappingSession
- Specified by:
getMappingSessionin interfaceSearchMapping
-
getSearchIndexer
- Specified by:
getSearchIndexerin interfaceSearchMapping
-
indexedEntity
- Specified by:
indexedEntityin interfaceSearchMapping- Parameters:
entityType- The type of an possible-indexed entity.- Returns:
- A
SearchIndexedEntityfor the indexed entity with the exact given type, if the type matches some indexed entity, otherwisenull.
-
indexedEntity
- Specified by:
indexedEntityin interfaceSearchMapping
-
allIndexedEntities
- Specified by:
allIndexedEntitiesin interfaceSearchMapping- Returns:
- A collection containing one
SearchIndexedEntityfor each indexed entity
-
allIndexedEntityNames
- Specified by:
allIndexedEntityNamesin interfaceSearchMapping- Returns:
- A set containing the name of
all indexed entities.
-
allIndexedEntityJavaClasses
- Specified by:
allIndexedEntityJavaClassesin interfaceSearchMapping
-
typeIsIndexed
- Specified by:
typeIsIndexedin interfaceSearchMapping
-
typeIsIndexed
- Specified by:
typeIsIndexedin interfaceSearchMapping
-
metamodel
- Specified by:
metamodelin interfaceSearchMapping
-
genericIndexingFailures
public int genericIndexingFailures()- Specified by:
genericIndexingFailuresin interfaceSearchMapping
-
entityIndexingFailures
public int entityIndexingFailures()- Specified by:
entityIndexingFailuresin interfaceSearchMapping
-
getFailureHandler
- Specified by:
getFailureHandlerin interfaceSearchMapping
-
createScope
- Specified by:
createScopein interfaceInfinispanSearchSessionMappingContext
-
createScope
public <E> SearchScopeImpl<E> createScope(Class<E> expectedSuperType, Collection<String> entityNames) - Specified by:
createScopein interfaceInfinispanSearchSessionMappingContext
-
toConcreteType
- Specified by:
toConcreteTypein interfaceMappingImplementor<SearchMapping>
-
threadPoolProvider
- Specified by:
threadPoolProviderin interfacePojoMassIndexingMappingContext- Overrides:
threadPoolProviderin classAbstractPojoMappingImplementor<SearchMapping>- Returns:
- A
ThreadPoolProvider.
-
failureHandler
- Specified by:
failureHandlerin interfacePojoMassIndexingMappingContext- Overrides:
failureHandlerin classAbstractPojoMappingImplementor<SearchMapping>- Returns:
- A
FailureHandler.
-
createMassIndexerAgent
Description copied from interface:PojoMassIndexingMappingContextCreates aPojoMassIndexerAgent, able to exert control over other agents that could perform indexing concurrently (e.g. indexing plans).- Specified by:
createMassIndexerAgentin interfacePojoMassIndexingMappingContext- Parameters:
context- A context with information about the mass indexing that is about to start.- Returns:
- An agent.
-
createEntityReference
- Specified by:
createEntityReferencein interfaceEntityReferenceFactory- Parameters:
typeName- The name of the entity type.identifier- The identifier of the entity.- Returns:
- A reference to the entity.
-
getIntegration
-
setIntegration
-