Class PojoIndexingProcessorCastedTypeNode<T,U>
- java.lang.Object
-
- org.hibernate.search.mapper.pojo.processing.impl.PojoIndexingProcessor<T>
-
- org.hibernate.search.mapper.pojo.processing.impl.PojoIndexingProcessorCastedTypeNode<T,U>
-
- Type Parameters:
T- The processed type received as input.U- The type the input objects will be casted to.
- All Implemented Interfaces:
AutoCloseable,ToStringTreeAppendable
public class PojoIndexingProcessorCastedTypeNode<T,U> extends PojoIndexingProcessor<T>
A node inside aPojoIndexingProcessorresponsible for casting the value to a given type, then applying processor property nodes as well asTypeBridges to the value.This node will fail with an exception when values cannot be cast to type
U.
-
-
Constructor Summary
Constructors Constructor Description PojoIndexingProcessorCastedTypeNode(PojoCaster<? super U> caster, Iterable<IndexObjectFieldReference> parentIndexObjectReferences, PojoIndexingProcessor<? super U> nested, boolean isEntityType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappendTo(ToStringTreeAppender appender)Appends information aboutthisto the givenappender.voidclose()voidprocess(DocumentElement target, T source, PojoIndexingProcessorRootContext context)-
Methods inherited from class org.hibernate.search.mapper.pojo.processing.impl.PojoIndexingProcessor
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
-
PojoIndexingProcessorCastedTypeNode
public PojoIndexingProcessorCastedTypeNode(PojoCaster<? super U> caster, Iterable<IndexObjectFieldReference> parentIndexObjectReferences, PojoIndexingProcessor<? super U> nested, boolean isEntityType)
-
-
Method Detail
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Overrides:
closein classPojoIndexingProcessor<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.- Parameters:
appender- AToStringTreeAppender.
-
process
public final void process(DocumentElement target, T source, PojoIndexingProcessorRootContext context)
- Specified by:
processin classPojoIndexingProcessor<T>
-
-