Class LazySearchMapping

java.lang.Object
org.infinispan.query.remote.impl.LazySearchMapping
All Implemented Interfaces:
AutoCloseable, org.infinispan.search.mapper.mapping.SearchMapping

public class LazySearchMapping extends Object implements org.infinispan.search.mapper.mapping.SearchMapping
Since:
12.0
  • Constructor Details

    • LazySearchMapping

      public LazySearchMapping(org.infinispan.search.mapper.mapping.SearchMappingCommonBuilding commonBuilding, org.infinispan.query.impl.EntityLoader<?> entityLoader, org.infinispan.protostream.SerializationContext serCtx, org.infinispan.AdvancedCache<?,?> cache, ProtobufMetadataManagerImpl protobufMetadataManager, org.infinispan.query.core.impl.QueryCache queryCache)
  • Method Details

    • scope

      public <E> org.infinispan.search.mapper.scope.SearchScope<E> scope(Collection<? extends Class<? extends E>> types)
      Specified by:
      scope in interface org.infinispan.search.mapper.mapping.SearchMapping
    • scopeAll

      public org.infinispan.search.mapper.scope.SearchScope<?> scopeAll()
      Specified by:
      scopeAll in interface org.infinispan.search.mapper.mapping.SearchMapping
    • findScopeAll

      public Optional<org.infinispan.search.mapper.scope.SearchScope<?>> findScopeAll()
      Specified by:
      findScopeAll in interface org.infinispan.search.mapper.mapping.SearchMapping
    • getFailureHandler

      public org.hibernate.search.engine.reporting.FailureHandler getFailureHandler()
      Specified by:
      getFailureHandler in interface org.infinispan.search.mapper.mapping.SearchMapping
    • start

      public void start()
      Specified by:
      start in interface org.infinispan.search.mapper.mapping.SearchMapping
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.infinispan.search.mapper.mapping.SearchMapping
    • isClose

      public boolean isClose()
      Specified by:
      isClose in interface org.infinispan.search.mapper.mapping.SearchMapping
    • isRestarting

      public boolean isRestarting()
      Specified by:
      isRestarting in interface org.infinispan.search.mapper.mapping.SearchMapping
    • getMappingSession

      public org.infinispan.search.mapper.session.SearchSession getMappingSession()
      Specified by:
      getMappingSession in interface org.infinispan.search.mapper.mapping.SearchMapping
    • getSearchIndexer

      public org.infinispan.search.mapper.work.SearchIndexer getSearchIndexer()
      Specified by:
      getSearchIndexer in interface org.infinispan.search.mapper.mapping.SearchMapping
    • indexedEntity

      public org.infinispan.search.mapper.mapping.SearchIndexedEntity indexedEntity(Class<?> entityType)
      Specified by:
      indexedEntity in interface org.infinispan.search.mapper.mapping.SearchMapping
    • indexedEntity

      public org.infinispan.search.mapper.mapping.SearchIndexedEntity indexedEntity(String entityName)
      Specified by:
      indexedEntity in interface org.infinispan.search.mapper.mapping.SearchMapping
    • allIndexedEntities

      public Collection<? extends org.infinispan.search.mapper.mapping.SearchIndexedEntity> allIndexedEntities()
      Specified by:
      allIndexedEntities in interface org.infinispan.search.mapper.mapping.SearchMapping
    • indexedEntitiesForStatistics

      public Collection<? extends org.infinispan.search.mapper.mapping.SearchIndexedEntity> indexedEntitiesForStatistics()
      Specified by:
      indexedEntitiesForStatistics in interface org.infinispan.search.mapper.mapping.SearchMapping
    • allIndexedEntityNames

      public Set<String> allIndexedEntityNames()
      Specified by:
      allIndexedEntityNames in interface org.infinispan.search.mapper.mapping.SearchMapping
    • allIndexedEntityJavaClasses

      public Set<Class<?>> allIndexedEntityJavaClasses()
      Specified by:
      allIndexedEntityJavaClasses in interface org.infinispan.search.mapper.mapping.SearchMapping
    • typeIsIndexed

      public boolean typeIsIndexed(Object value)
      Specified by:
      typeIsIndexed in interface org.infinispan.search.mapper.mapping.SearchMapping
    • typeIsIndexed

      public boolean typeIsIndexed(Object value, Collection<Class<?>> restricted)
      Specified by:
      typeIsIndexed in interface org.infinispan.search.mapper.mapping.SearchMapping
    • metamodel

      public Map<String,org.infinispan.search.mapper.mapping.metamodel.IndexMetamodel> metamodel()
      Specified by:
      metamodel in interface org.infinispan.search.mapper.mapping.SearchMapping
    • genericIndexingFailures

      public int genericIndexingFailures()
      Specified by:
      genericIndexingFailures in interface org.infinispan.search.mapper.mapping.SearchMapping
    • entityIndexingFailures

      public int entityIndexingFailures()
      Specified by:
      entityIndexingFailures in interface org.infinispan.search.mapper.mapping.SearchMapping
    • reload

      public void reload()
      Specified by:
      reload in interface org.infinispan.search.mapper.mapping.SearchMapping
    • restart

      public void restart()
      Specified by:
      restart in interface org.infinispan.search.mapper.mapping.SearchMapping