Class InfinispanSearchSession
java.lang.Object
org.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
org.infinispan.search.mapper.session.impl.InfinispanSearchSession
- All Implemented Interfaces:
AutoCloseable
,org.hibernate.search.engine.backend.session.spi.BackendSessionContext
,org.hibernate.search.mapper.pojo.automaticindexing.spi.PojoImplicitReindexingResolverSessionContext
,org.hibernate.search.mapper.pojo.bridge.runtime.spi.BridgeSessionContext
,org.hibernate.search.mapper.pojo.processing.spi.PojoIndexingProcessorSessionContext
,org.hibernate.search.mapper.pojo.scope.spi.PojoScopeSessionContext
,org.hibernate.search.mapper.pojo.work.spi.PojoWorkSessionContext
,SearchSession
public class InfinispanSearchSession
extends org.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
implements SearchSession
- Author:
- Fabio Massimo Ercoli
-
Constructor Summary
ConstructorDescriptionInfinispanSearchSession
(InfinispanSearchSessionMappingContext mappingContext, EntityLoaderFactory<?> entityLoader) -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
org.hibernate.search.mapper.pojo.work.spi.ConfiguredSearchIndexingPlanFilter
org.hibernate.search.mapper.pojo.work.spi.PojoIndexer
org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionLoadingContext
<T> SearchScope
<T> scope
(Class<T> expectedSuperType, Collection<String> entityNames) Create aSearchScope
limited to entity types referenced by their name.<E> SearchScopeImpl
<E> scope
(Collection<? extends Class<? extends E>> types) Create aSearchScope
limited to the given types.<E> org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep
<?, org.hibernate.search.engine.common.EntityReference, E, ?, ?, ?> search
(SearchScope<E> scope) Initiate the building of a search query.Methods inherited from class org.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
identifierBridgeFromDocumentIdentifierContext, mappingContext, propertyBridgeWriteContext, routingBridgeRouteContext, typeBridgeWriteContext, valueBridgeFromIndexedValueContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.infinispan.search.mapper.session.SearchSession
scope, scope
-
Constructor Details
-
InfinispanSearchSession
public InfinispanSearchSession(InfinispanSearchSessionMappingContext mappingContext, EntityLoaderFactory<?> entityLoader)
-
-
Method Details
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
search
public <E> org.hibernate.search.engine.search.query.dsl.SearchQuerySelectStep<?,org.hibernate.search.engine.common.EntityReference, searchE, ?, ?, ?> (SearchScope<E> scope) Description copied from interface:SearchSession
Initiate the building of a search query.The query will target the indexes in the given scope.
- Specified by:
search
in interfaceSearchSession
- Type Parameters:
E
- An entity type to include in the scope.- Parameters:
scope
- A scope representing all indexed types that will be targeted by the search query.- Returns:
- The initial step of a DSL where the search query can be defined.
- See Also:
-
scope
Description copied from interface:SearchSession
Create aSearchScope
limited to the given types.- Specified by:
scope
in interfaceSearchSession
- Type Parameters:
E
- A supertype of all indexed entity types that will be targeted by the search query.- Parameters:
types
- A collection of types to include in the scope.- Returns:
- The created scope.
- See Also:
-
scope
Description copied from interface:SearchSession
Create aSearchScope
limited to entity types referenced by their name.- Specified by:
scope
in interfaceSearchSession
- Type Parameters:
T
- A supertype of all entity types to include in the scope.- Parameters:
expectedSuperType
- A supertype of all entity types to include in the scope.entityNames
- A collection of entity names.- Returns:
- The created scope.
- See Also:
-
createIndexer
public org.hibernate.search.mapper.pojo.work.spi.PojoIndexer createIndexer()- Specified by:
createIndexer
in interfaceSearchSession
- Overrides:
createIndexer
in classorg.hibernate.search.mapper.pojo.session.spi.AbstractPojoSearchSession
-
tenantIdentifier
- Specified by:
tenantIdentifier
in interfaceorg.hibernate.search.engine.backend.session.spi.BackendSessionContext
- Specified by:
tenantIdentifier
in interfaceorg.hibernate.search.mapper.pojo.bridge.runtime.spi.BridgeSessionContext
-
runtimeIntrospector
- Specified by:
runtimeIntrospector
in interfaceorg.hibernate.search.mapper.pojo.automaticindexing.spi.PojoImplicitReindexingResolverSessionContext
- Specified by:
runtimeIntrospector
in interfaceorg.hibernate.search.mapper.pojo.processing.spi.PojoIndexingProcessorSessionContext
-
defaultLoadingContext
public org.hibernate.search.mapper.pojo.loading.spi.PojoSelectionLoadingContext defaultLoadingContext()- Specified by:
defaultLoadingContext
in interfaceorg.hibernate.search.mapper.pojo.work.spi.PojoWorkSessionContext
-
configuredIndexingPlanFilter
public org.hibernate.search.mapper.pojo.work.spi.ConfiguredSearchIndexingPlanFilter configuredIndexingPlanFilter()- Specified by:
configuredIndexingPlanFilter
in interfaceorg.hibernate.search.mapper.pojo.work.spi.PojoWorkSessionContext
-