Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods
void
org.hibernate.search.engine.reporting.FailureHandler
boolean
default boolean
default void
Releases all used resources (IO, threads)
and restarts from the mapping configuration.
default void
Releases some used resources (e.g.: threads), preserving some others (e.g.: IO)
and restarts from the mapping configuration.
Method Details
scope
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
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:
getFailureHandler
org.hibernate.search.engine.reporting.FailureHandler getFailureHandler ()
isClose
boolean isClose ()
isRestarting
default boolean isRestarting ()
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, otherwise null
.
allIndexedEntities
Returns:
A collection containing one SearchIndexedEntity
for each indexed entity
indexedEntitiesForStatistics
allIndexedEntityJavaClasses
Set <Class <?>> 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.
toConvertedEntityJavaClass
Parameters:
value
- An entity.
Returns:
The internal Java class for this entity after conversion,
i.e. the Java class that will be returned by 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: