Interface FieldExtractor<T>

  • All Known Implementing Classes:
    BeanFieldExtractor

    public interface FieldExtractor<T>
    Interface for field extractor. This will be used by RecordMarshaller to extract fields from the payload of a record.
    Author:
    Rémi Alvergnat (toilal.dev@gmail.com)
    • Method Detail

      • extractFields

        java.lang.Iterable<java.lang.Object> extractFields​(T payload)
                                                    throws java.lang.Exception
        Extract fields from the payload of a record.
        Parameters:
        payload - of the record
        Returns:
        a iterable containing fields of the record's payload
        Throws:
        java.lang.Exception - if unable to extract fields from the record's payload