Interface FromDocumentFieldValueConverter<F,V>
- Type Parameters:
F- The type of source, index field values.V- The type of target values.
- All Superinterfaces:
FromDocumentValueConverter<F,V>
@Deprecated(since="6.1")
public interface FromDocumentFieldValueConverter<F,V>
extends FromDocumentValueConverter<F,V>
Deprecated.
A converter from a source index field value to a different value.
-
Method Summary
Modifier and TypeMethodDescriptionconvert(F value, FromDocumentFieldValueConvertContext context) Deprecated.default VfromDocumentValue(F value, FromDocumentValueConvertContext context) Deprecated.default booleanisCompatibleWith(FromDocumentFieldValueConverter<?, ?> other) Deprecated.default booleanisCompatibleWith(FromDocumentValueConverter<?, ?> other) Deprecated.
-
Method Details
-
fromDocumentValue
Deprecated.- Specified by:
fromDocumentValuein interfaceFromDocumentValueConverter<F,V> - Parameters:
value- The value to convert from the document model.context- A context that can beextendedto 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
Deprecated.- Specified by:
isCompatibleWithin interfaceFromDocumentValueConverter<F,V> - Parameters:
other- AnotherFromDocumentValueConverter, nevernull.- Returns:
trueif the given object behaves exactly the same as this object, i.e. itsFromDocumentValueConverter.fromDocumentValue(Object, FromDocumentValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-
convert
Deprecated.- Parameters:
value- The index field value to convert.context- A context that can beextendedto 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
Deprecated.- Parameters:
other- AnotherToDocumentFieldValueConverter, nevernull.- Returns:
trueif the given object behaves exactly the same as this object, i.e. itsconvert(Object, org.hibernate.search.engine.backend.types.converter.runtime.FromDocumentFieldValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-
FromDocumentValueConverterinstead.