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 public interface FromDocumentFieldValueConverter<F,V> extends FromDocumentValueConverter<F,V>
Deprecated.ImplementFromDocumentValueConverterinstead.A converter from a source index field value to a different value.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description Vconvert(F value, FromDocumentFieldValueConvertContext context)Deprecated.default VfromDocumentValue(F value, FromDocumentValueConvertContext context)Deprecated.default booleanisCompatibleWith(FromDocumentFieldValueConverter<?,?> other)Deprecated.default booleanisCompatibleWith(FromDocumentValueConverter<?,?> other)Deprecated.
-
-
-
Method Detail
-
fromDocumentValue
default V fromDocumentValue(F value, FromDocumentValueConvertContext context)
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
default boolean isCompatibleWith(FromDocumentValueConverter<?,?> other)
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
V convert(F value, FromDocumentFieldValueConvertContext context)
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
default boolean isCompatibleWith(FromDocumentFieldValueConverter<?,?> other)
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.
-
-