Class DefaultStringConverters.Converter<F>
java.lang.Object
org.hibernate.search.engine.backend.types.converter.spi.DefaultStringConverters.Converter<F>
- All Implemented Interfaces:
FromDocumentValueConverter<F,,String> ToDocumentValueConverter<String,F>
- Enclosing class:
DefaultStringConverters
public static class DefaultStringConverters.Converter<F>
extends Object
implements ToDocumentValueConverter<String,F>, FromDocumentValueConverter<F,String>
-
Method Summary
Modifier and TypeMethodDescriptionfromDocumentValue(F value, FromDocumentValueConvertContext context) booleanisCompatibleWith(ToDocumentValueConverter<?, ?> other) toDocumentValue(String value, ToDocumentValueConvertContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.search.engine.backend.types.converter.FromDocumentValueConverter
isCompatibleWith
-
Method Details
-
toDocumentValue
- Specified by:
toDocumentValuein interfaceToDocumentValueConverter<String,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
- Specified by:
isCompatibleWithin interfaceToDocumentValueConverter<String,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.
-
fromDocumentValue
- Specified by:
fromDocumentValuein interfaceFromDocumentValueConverter<F,String> - 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.
-