Class PojoImplicitReindexingAssociationInverseSideResolver
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.automaticindexing.impl.PojoImplicitReindexingAssociationInverseSideResolver
-
- All Implemented Interfaces:
AutoCloseable,ToStringTreeAppendable
public final class PojoImplicitReindexingAssociationInverseSideResolver extends Object implements AutoCloseable, ToStringTreeAppendable
Information about associations involved in reindexing.
-
-
Constructor Summary
Constructors Constructor Description PojoImplicitReindexingAssociationInverseSideResolver(PojoPathOrdinals pathOrdinals, PojoPathFilter dirtyContainingAssociationFilter, List<List<PojoImplicitReindexingAssociationInverseSideResolverNode<Object>>> resolversByOrdinal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.voidclose()PojoPathFilterdirtyContainingAssociationFilter()voidresolveEntitiesToReindex(PojoReindexingAssociationInverseSideCollector collector, BitSet dirtyAssociationPaths, Object[] oldState, Object[] newState, PojoImplicitReindexingAssociationInverseSideResolverRootContext context)Adds the inverse side of dirty associations (that should cause reindexing) tocollector, taking into account the given "association states" and the bitset describing the dirtiness of associations.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
-
PojoImplicitReindexingAssociationInverseSideResolver
public PojoImplicitReindexingAssociationInverseSideResolver(PojoPathOrdinals pathOrdinals, PojoPathFilter dirtyContainingAssociationFilter, List<List<PojoImplicitReindexingAssociationInverseSideResolverNode<Object>>> resolversByOrdinal)
-
-
Method Detail
-
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.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
dirtyContainingAssociationFilter
public PojoPathFilter dirtyContainingAssociationFilter()
-
resolveEntitiesToReindex
public void resolveEntitiesToReindex(PojoReindexingAssociationInverseSideCollector collector, BitSet dirtyAssociationPaths, Object[] oldState, Object[] newState, PojoImplicitReindexingAssociationInverseSideResolverRootContext context)
Adds the inverse side of dirty associations (that should cause reindexing) tocollector, taking into account the given "association states" and the bitset describing the dirtiness of associations.- Parameters:
collector- A collector for entities pointed to be dirty associations, which should be reindexed.dirtyAssociationPaths- The set of dirty paths that involve associations in an entity instance.oldState- The old state of the entity whose associations are dirty. May benull, in which case this state will not yield any reindexing.newState- The new state of the entity whose associations are dirty. May benull, in which case this state will not yield any reindexing.context- A context related to the entity root
-
-