Interface AlternativeBinderDelegate<D,​P>

    • Method Detail

      • bind

        AlternativeValueBridge<D,​P> bind​(IndexSchemaElement indexSchemaElement,
                                               PojoModelProperty fieldValueSource)
        Binds the given field value source to multiple field, i.e.:
        • Declares one field per alternative.
        • Creates a bridge that will route field values to the appropriate field based on a discriminator.
        Parameters:
        indexSchemaElement - The index schema element to add fields to.
        fieldValueSource - The source of field values, passed to allow looking up metadata (name, exact type, ...).
        Returns:
        The AlternativeValueBridge bound to the given property.
        See Also:
        AlternativeValueBridge