Class PojoImplicitReindexingResolverContainerElementNode<C,V>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.automaticindexing.impl.PojoImplicitReindexingResolverNode<C>
-
- org.hibernate.search.mapper.pojo.automaticindexing.impl.PojoImplicitReindexingResolverContainerElementNode<C,V>
-
- Type Parameters:
C- The container type received as input, for instanceMap<String, Collection<MyEntityType>>.V- The extracted value type, for instanceMyEntityType.
- All Implemented Interfaces:
AutoCloseable,ToStringTreeAppendable
public class PojoImplicitReindexingResolverContainerElementNode<C,V> extends PojoImplicitReindexingResolverNode<C>
APojoImplicitReindexingResolverNodedealing with a specific container type, extracting values from the container then applying nested resolvers to the values.This node will only delegate to nested nodes for deeper resolution, and will never contribute entities to reindex directly. At the time of writing, nested nodes are always type nodes, but we might allow other nodes in the future for optimization purposes.
-
-
Constructor Summary
Constructors Constructor Description PojoImplicitReindexingResolverContainerElementNode(ContainerExtractorHolder<C,V> extractorHolder, PojoImplicitReindexingResolverNode<? super V> nested)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.voidclose()voidresolveEntitiesToReindex(PojoReindexingCollector collector, C dirty, PojoImplicitReindexingResolverRootContext context)Add all entities that should be reindexed tocollector, taking into account the given "dirtiness state".-
Methods inherited from class org.hibernate.search.mapper.pojo.automaticindexing.impl.PojoImplicitReindexingResolverNode
noOp, toString
-
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
-
PojoImplicitReindexingResolverContainerElementNode
public PojoImplicitReindexingResolverContainerElementNode(ContainerExtractorHolder<C,V> extractorHolder, PojoImplicitReindexingResolverNode<? super V> nested)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein classPojoImplicitReindexingResolverNode<C>
-
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.- Parameters:
appender- AToStringTreeAppender.
-
resolveEntitiesToReindex
public void resolveEntitiesToReindex(PojoReindexingCollector collector, C dirty, PojoImplicitReindexingResolverRootContext context)
Description copied from class:PojoImplicitReindexingResolverNodeAdd all entities that should be reindexed tocollector, taking into account the given "dirtiness state".- Specified by:
resolveEntitiesToReindexin classPojoImplicitReindexingResolverNode<C>- Parameters:
collector- A collector for entities that should be reindexed.dirty- A value that is dirty to some extent.context- A context representing the root entity, and including in particular information about dirty paths. Resolvers should always pass this context as-is when delegating to other resolvers.
-
-