Class PassThroughFromDocumentFieldValueConverter<F>
- java.lang.Object
-
- org.hibernate.search.engine.backend.types.converter.spi.PassThroughFromDocumentFieldValueConverter<F>
-
- All Implemented Interfaces:
FromDocumentFieldValueConverter<F,F>
public final class PassThroughFromDocumentFieldValueConverter<F> extends Object implements FromDocumentFieldValueConverter<F,F>
-
-
Constructor Summary
Constructors Constructor Description PassThroughFromDocumentFieldValueConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description F
convert(F value, FromDocumentFieldValueConvertContext context)
boolean
isCompatibleWith(FromDocumentFieldValueConverter<?,?> other)
-
-
-
Method Detail
-
convert
public F convert(F value, FromDocumentFieldValueConvertContext context)
- Specified by:
convert
in interfaceFromDocumentFieldValueConverter<F,F>
- Parameters:
value
- The index field value to convert.context
- A context that can beextended
to a more useful type, giving access to such things as a Hibernate ORM Session (if using the Hibernate ORM mapper).- Returns:
- The converted value.
-
isCompatibleWith
public boolean isCompatibleWith(FromDocumentFieldValueConverter<?,?> other)
- Specified by:
isCompatibleWith
in interfaceFromDocumentFieldValueConverter<F,F>
- Parameters:
other
- AnotherToDocumentFieldValueConverter
, nevernull
.- Returns:
true
if the given object behaves exactly the same as this object, i.e. itsFromDocumentFieldValueConverter.convert(Object, FromDocumentFieldValueConvertContext)
method is guaranteed to always return the same value as this object's when given the same input.false
otherwise, or when in doubt.
-
-