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
Constructors Constructor Description PojoImplicitReindexingResolverImpl(PojoPathFilter dirtySelfFilter, PojoPathFilter dirtySelfOrContainingFilter, PojoImplicitReindexingResolverNode<T> containingEntitiesResolverRoot, PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.PojoImplicitReindexingAssociationInverseSideResolverassociationInverseSideResolver()voidclose()PojoPathFilterdirtySelfFilter()PojoPathFilterdirtySelfOrContainingFilter()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".StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.hibernate.search.util.common.spi.ToStringTreeAppendable
toStringTree
-
-
-
-
Constructor Detail
-
PojoImplicitReindexingResolverImpl
public PojoImplicitReindexingResolverImpl(PojoPathFilter dirtySelfFilter, PojoPathFilter dirtySelfOrContainingFilter, PojoImplicitReindexingResolverNode<T> containingEntitiesResolverRoot, PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfacePojoImplicitReindexingResolver<T>
-
appendTo
public void appendTo(ToStringTreeAppender appender)
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
public PojoPathFilter dirtySelfFilter()
- Specified by:
dirtySelfFilterin interfacePojoImplicitReindexingResolver<T>- Returns:
- A path filter that only accepts paths whose dirtiness would require reindexing the dirty entity.
-
dirtySelfOrContainingFilter
public PojoPathFilter 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
public PojoImplicitReindexingAssociationInverseSideResolver associationInverseSideResolver()
- Specified by:
associationInverseSideResolverin interfacePojoImplicitReindexingResolver<T>- Returns:
- A path filter that only accepts direct paths to associations to containing entities.
-
-