Interface ToDocumentFieldValueConverter<V,F>
-
- Type Parameters:
V
- The type of source values.F
- The type of target, index field values.
- All Superinterfaces:
ToDocumentValueConverter<V,F>
@Deprecated public interface ToDocumentFieldValueConverter<V,F> extends ToDocumentValueConverter<V,F>
Deprecated.ImplementToDocumentValueConverter
instead.A converter from a source value to a target value that should be indexed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description F
convert(V value, ToDocumentFieldValueConvertContext context)
Deprecated.default boolean
isCompatibleWith(ToDocumentFieldValueConverter<?,?> other)
Deprecated.default boolean
isCompatibleWith(ToDocumentValueConverter<?,?> other)
Deprecated.default F
toDocumentValue(V value, ToDocumentValueConvertContext context)
Deprecated.
-
-
-
Method Detail
-
toDocumentValue
default F toDocumentValue(V value, ToDocumentValueConvertContext context)
Deprecated.- Specified by:
toDocumentValue
in interfaceToDocumentValueConverter<V,F>
- Parameters:
value
- The source value to convert to the document model.context
- A context that can beextended
to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).- Returns:
- The converted index field value.
-
isCompatibleWith
default boolean isCompatibleWith(ToDocumentValueConverter<?,?> other)
Deprecated.- Specified by:
isCompatibleWith
in interfaceToDocumentValueConverter<V,F>
- Parameters:
other
- AnotherToDocumentValueConverter
, nevernull
.- Returns:
true
if the given object behaves exactly the same as this object, i.e. itsToDocumentValueConverter.toDocumentValue(Object, ToDocumentValueConvertContext)
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
F convert(V value, ToDocumentFieldValueConvertContext context)
Deprecated.- Parameters:
value
- The source value to convert.context
- A context that can beextended
to a more useful type, giving access to such things as a Hibernate ORM SessionFactory (if using the Hibernate ORM mapper).- Returns:
- The converted index field value.
-
isCompatibleWith
default boolean isCompatibleWith(ToDocumentFieldValueConverter<?,?> other)
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.ToDocumentFieldValueConvertContext)
method is guaranteed to always return the same value as this object's when given the same input.false
otherwise, or when in doubt.
-
-