Interface ToDocumentIdentifierValueConverter<I>

  • Type Parameters:
    I - The type of source identifier values.
    All Known Implementing Classes:
    StringToDocumentIdentifierValueConverter

    public interface ToDocumentIdentifierValueConverter<I>
    A converter from a source identifier value to a target value that should be used as a document identifier.
    • Method Detail

      • convert

        String convert​(I value,
                       ToDocumentIdentifierValueConvertContext context)
        Parameters:
        value - The source value to convert.
        context - A context that can be extended 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.
      • convertUnknown

        String convertUnknown​(Object value,
                              ToDocumentIdentifierValueConvertContext context)
        Convert an input value of unknown type that may not have the required type I.

        Called when passing values to the predicate DSL in particular.

        Parameters:
        value - The source value to convert.
        context - A context that can be extended 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.