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.
A converter from a source index field value to a different value.
-
Method Summary
Modifier and TypeMethodDescriptionconvert
(F value, FromDocumentFieldValueConvertContext context) Deprecated.default V
fromDocumentValue
(F value, FromDocumentValueConvertContext context) Deprecated.default boolean
isCompatibleWith
(FromDocumentFieldValueConverter<?, ?> other) Deprecated.default boolean
isCompatibleWith
(FromDocumentValueConverter<?, ?> other) Deprecated.
-
Method Details
-
fromDocumentValue
Deprecated.- Specified by:
fromDocumentValue
in interfaceFromDocumentValueConverter<F,
V> - Parameters:
value
- The value to convert from the document model.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
Deprecated.- Specified by:
isCompatibleWith
in interfaceFromDocumentValueConverter<F,
V> - Parameters:
other
- AnotherFromDocumentValueConverter
, nevernull
.- Returns:
true
if 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.false
otherwise, or when in doubt.
-
convert
Deprecated.- 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
Deprecated.- Parameters:
other
- AnotherToDocumentFieldValueConverter
, nevernull
.- Returns:
true
if 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.false
otherwise, or when in doubt.
-
FromDocumentValueConverter
instead.