Class InfinispanMapping

  • All Implemented Interfaces:
    AutoCloseable, org.hibernate.search.engine.backend.common.spi.EntityReferenceFactory<EntityReference>, org.hibernate.search.engine.backend.mapping.spi.BackendMappingContext, org.hibernate.search.engine.mapper.mapping.spi.MappingImplementor<SearchMapping>, org.hibernate.search.mapper.pojo.bridge.runtime.spi.BridgeMappingContext, org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext, org.hibernate.search.mapper.pojo.scope.spi.PojoScopeMappingContext, org.hibernate.search.mapper.pojo.session.spi.PojoSearchSessionMappingContext, org.hibernate.search.mapper.pojo.work.spi.PojoWorkMappingContext, SearchMapping, InfinispanSearchSessionMappingContext

    public class InfinispanMapping
    extends org.hibernate.search.mapper.pojo.mapping.spi.AbstractPojoMappingImplementor<SearchMapping>
    implements SearchMapping, InfinispanSearchSessionMappingContext, org.hibernate.search.engine.backend.common.spi.EntityReferenceFactory<EntityReference>
    • Method Detail

      • scope

        public <E> SearchScope<E> scope​(Collection<? extends Class<? extends E>> targetedTypes)
        Description copied from interface: SearchMapping
        Create a SearchScope limited to the given types.
        Specified by:
        scope in interface SearchMapping
        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:
        SearchScope
      • toConvertedEntityJavaClass

        public Class<?> toConvertedEntityJavaClass​(Object value)
        Specified by:
        toConvertedEntityJavaClass in interface SearchMapping
        Parameters:
        value - An entity.
        Returns:
        The internal Java class for this entity after conversion, i.e. the Java class that will be returned by SearchMapping.allIndexedEntityJavaClasses() if this entity is potentially indexed. In practice, this is only useful to handle protobuf type: if an instance of ProtobufValueWrapper is passed, this will return byte[] because that's the type we use for protobuf values internally. For all other types, this just returns value.getClass().
        See Also:
        EntityConverter
      • getFailureHandler

        public org.hibernate.search.engine.reporting.FailureHandler getFailureHandler()
        Specified by:
        getFailureHandler in interface SearchMapping
      • toConcreteType

        public SearchMapping toConcreteType()
        Specified by:
        toConcreteType in interface org.hibernate.search.engine.mapper.mapping.spi.MappingImplementor<SearchMapping>
      • entityReferenceFactory

        public org.hibernate.search.engine.backend.common.spi.EntityReferenceFactory<EntityReference> entityReferenceFactory()
        Specified by:
        entityReferenceFactory in interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
        Specified by:
        entityReferenceFactory in interface org.hibernate.search.mapper.pojo.work.spi.PojoWorkMappingContext
      • threadPoolProvider

        public org.hibernate.search.engine.environment.thread.spi.ThreadPoolProvider threadPoolProvider()
        Specified by:
        threadPoolProvider in interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
      • failureHandler

        public org.hibernate.search.engine.reporting.FailureHandler failureHandler()
        Specified by:
        failureHandler in interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
      • createMassIndexerAgent

        public org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexerAgent createMassIndexerAgent​(org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexerAgentCreateContext context)
        Specified by:
        createMassIndexerAgent in interface org.hibernate.search.mapper.pojo.massindexing.spi.PojoMassIndexingMappingContext
      • createEntityReference

        public EntityReference createEntityReference​(String typeName,
                                                     Object identifier)
        Specified by:
        createEntityReference in interface org.hibernate.search.engine.backend.common.spi.EntityReferenceFactory<EntityReference>
      • getIntegration

        public org.hibernate.search.engine.common.spi.SearchIntegration getIntegration()
      • setIntegration

        public void setIntegration​(org.hibernate.search.engine.common.spi.SearchIntegration integration)