Class PojoImplicitReindexingResolverImpl<T>
java.lang.Object
org.hibernate.search.mapper.pojo.automaticindexing.impl.PojoImplicitReindexingResolverImpl<T>
- All Implemented Interfaces:
AutoCloseable,PojoImplicitReindexingResolver<T>,ToStringTreeAppendable
public class PojoImplicitReindexingResolverImpl<T>
extends Object
implements PojoImplicitReindexingResolver<T>
-
Constructor Summary
ConstructorsConstructorDescriptionPojoImplicitReindexingResolverImpl(PojoPathFilter dirtySelfFilter, PojoPathFilter dirtySelfOrContainingFilter, PojoImplicitReindexingResolverNode<T> containingEntitiesResolverRoot, PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(ToStringTreeAppender appender) Appends information aboutthisto the givenappender.voidclose()voidresolveEntitiesToReindex(PojoReindexingCollector collector, T dirty, PojoImplicitReindexingResolverRootContext context) Adds all entities that should be reindexed tocollector, taking into account the given "dirty entity" and the context describing its "dirtiness".toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
Constructor Details
-
PojoImplicitReindexingResolverImpl
public PojoImplicitReindexingResolverImpl(PojoPathFilter dirtySelfFilter, PojoPathFilter dirtySelfOrContainingFilter, PojoImplicitReindexingResolverNode<T> containingEntitiesResolverRoot, PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver)
-
-
Method Details
-
toString
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePojoImplicitReindexingResolver<T>
-
appendTo
Description copied from interface:ToStringTreeAppendableAppends information aboutthisto the givenappender.WARNING: This generally shouldn't be called directly, as
ToStringTreeAppenderwill automatically call this method forToStringTreeAppendablevalues passed toToStringTreeAppender.attribute(String, Object)/ToStringTreeAppender.value(Object).Implementations should assume that calls to
ToStringTreeAppender.startObject()/ToStringTreeAppender.endObject()forthisare handled by the caller.- Specified by:
appendToin interfaceToStringTreeAppendable- Parameters:
appender- AToStringTreeAppender.
-
dirtySelfFilter
- Specified by:
dirtySelfFilterin interfacePojoImplicitReindexingResolver<T>- Returns:
- A path filter that only accepts paths whose dirtiness would require reindexing the dirty entity.
-
dirtySelfOrContainingFilter
- Specified by:
dirtySelfOrContainingFilterin interfacePojoImplicitReindexingResolver<T>- Returns:
- A path filter that only accepts paths whose dirtiness would require reindexing the dirty entity OR an associated entity that contains it.
-
resolveEntitiesToReindex
public void resolveEntitiesToReindex(PojoReindexingCollector collector, T dirty, PojoImplicitReindexingResolverRootContext context) Description copied from interface:PojoImplicitReindexingResolverAdds all entities that should be reindexed tocollector, taking into account the given "dirty entity" and the context describing its "dirtiness".- Specified by:
resolveEntitiesToReindexin interfacePojoImplicitReindexingResolver<T>- Parameters:
collector- A collector for dirty entities that should be reindexed.dirty- The entity whose dirtiness is to be checked.context- A context related to the entity root
-
associationInverseSideResolver
- Specified by:
associationInverseSideResolverin interfacePojoImplicitReindexingResolver<T>- Returns:
- A path filter that only accepts direct paths to associations to containing entities.
-