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
ConstructorsConstructorDescriptionPojoImplicitReindexingAssociationInverseSideResolver(PojoPathOrdinals pathOrdinals, PojoPathFilter dirtyContainingAssociationFilter, List<List<PojoImplicitReindexingAssociationInverseSideResolverNode<Object>>> resolversByOrdinal) -
Method Summary
Modifier and TypeMethodDescriptionvoidappendTo(ToStringTreeAppender appender) Appends information aboutthisto the givenappender.voidclose()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.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
-
PojoImplicitReindexingAssociationInverseSideResolver
public PojoImplicitReindexingAssociationInverseSideResolver(PojoPathOrdinals pathOrdinals, PojoPathFilter dirtyContainingAssociationFilter, List<List<PojoImplicitReindexingAssociationInverseSideResolverNode<Object>>> resolversByOrdinal)
-
-
Method Details
-
toString
-
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.
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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
-