Interface SearchMapping
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
InfinispanMapping
-
Method Summary
Modifier and TypeMethodDescriptionCollection
<? extends SearchIndexedEntity> static SearchMappingBuilder
builder
(org.hibernate.search.mapper.pojo.model.spi.PojoBootstrapIntrospector introspector, ClassLoader aggregatedClassLoader, Collection<ProgrammaticSearchMappingProvider> mappingProviders, BlockingManager blockingManager, FailureCounter failureCounter, int maxConcurrency) void
close()
int
Optional
<SearchScope<?>> int
org.hibernate.search.engine.reporting.FailureHandler
default Collection
<? extends SearchIndexedEntity> indexedEntity
(Class<?> entityType) indexedEntity
(String entityName) boolean
isClose()
default boolean
default void
reload()
Releases all used resources (IO, threads) and restarts from the mapping configuration.default void
restart()
Releases some used resources (e.g.: threads), preserving some others (e.g.: IO) and restarts from the mapping configuration.default <E> SearchScope
<E> Create aSearchScope
limited to the given type.<E> SearchScope
<E> scope
(Collection<? extends Class<? extends E>> types) Create aSearchScope
limited to the given types.SearchScope
<?> scopeAll()
void
start()
boolean
typeIsIndexed
(Object value) boolean
typeIsIndexed
(Object value, Collection<Class<?>> restricted)
-
Method Details
-
scope
Create aSearchScope
limited to the given type.- Type Parameters:
E
- An entity type to include in the scope.- Parameters:
type
- A type to include in the scope.- Returns:
- The created scope.
- See Also:
-
scope
Create aSearchScope
limited to the given types.- Type Parameters:
E
- An entity to include in the scope.- Parameters:
types
- A collection of types to include in the scope.- Returns:
- The created scope.
- See Also:
-
scopeAll
SearchScope<?> scopeAll() -
findScopeAll
Optional<SearchScope<?>> findScopeAll() -
getFailureHandler
org.hibernate.search.engine.reporting.FailureHandler getFailureHandler() -
start
void start() -
close
void close()- Specified by:
close
in interfaceAutoCloseable
-
isClose
boolean isClose() -
isRestarting
default boolean isRestarting() -
getMappingSession
SearchSession getMappingSession() -
getSearchIndexer
SearchIndexer getSearchIndexer() -
indexedEntity
- Parameters:
entityType
- The type of an possible-indexed entity.- Returns:
- A
SearchIndexedEntity
for the indexed entity with the exact given type, if the type matches some indexed entity, otherwisenull
.
-
indexedEntity
-
allIndexedEntities
Collection<? extends SearchIndexedEntity> allIndexedEntities()- Returns:
- A collection containing one
SearchIndexedEntity
for each indexed entity
-
indexedEntitiesForStatistics
-
allIndexedEntityNames
- Returns:
- A set containing the name of
all indexed entities
.
-
allIndexedEntityJavaClasses
-
reload
default void reload()Releases all used resources (IO, threads) and restarts from the mapping configuration. -
restart
default void restart()Releases some used resources (e.g.: threads), preserving some others (e.g.: IO) and restarts from the mapping configuration. -
typeIsIndexed
-
typeIsIndexed
-
metamodel
Map<String,IndexMetamodel> metamodel() -
genericIndexingFailures
int genericIndexingFailures() -
entityIndexingFailures
int entityIndexingFailures() -
builder
static SearchMappingBuilder builder(org.hibernate.search.mapper.pojo.model.spi.PojoBootstrapIntrospector introspector, ClassLoader aggregatedClassLoader, Collection<ProgrammaticSearchMappingProvider> mappingProviders, BlockingManager blockingManager, FailureCounter failureCounter, int maxConcurrency)
-