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(since="6.1")
public interface ToDocumentFieldValueConverter<V,F>
extends ToDocumentValueConverter<V,F>
Deprecated.
A converter from a source value to a target value that should be indexed.
-
Method Summary
Modifier and TypeMethodDescriptionconvert(V value, ToDocumentFieldValueConvertContext context) Deprecated.default booleanisCompatibleWith(ToDocumentFieldValueConverter<?, ?> other) Deprecated.default booleanisCompatibleWith(ToDocumentValueConverter<?, ?> other) Deprecated.default FtoDocumentValue(V value, ToDocumentValueConvertContext context) Deprecated.
-
Method Details
-
toDocumentValue
Deprecated.- Specified by:
toDocumentValuein interfaceToDocumentValueConverter<V,F> - Parameters:
value- The source value to convert to the document model.context- A context that can beextendedto 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
Deprecated.- Specified by:
isCompatibleWithin interfaceToDocumentValueConverter<V,F> - Parameters:
other- AnotherToDocumentValueConverter, nevernull.- Returns:
trueif 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.falseotherwise, or when in doubt.
-
convert
Deprecated.- Parameters:
value- The source value to convert.context- A context that can beextendedto 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
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.ToDocumentFieldValueConvertContext)method is guaranteed to always return the same value as this object's when given the same input.falseotherwise, or when in doubt.
-
ToDocumentValueConverterinstead.