Is your feature request related to a problem? Please describe.
The message metadata is lost in source/function. People can not use these information for their computation.
Describe the solution you'd like
Similar as what was discussed in #4093, we should support using Message<T> as the input for a source or a function.
public class MessageFunction implements Function<Message<String>, String>> {
...
}
Describe alternatives you've considered
N/A
Is your feature request related to a problem? Please describe.
The message metadata is lost in source/function. People can not use these information for their computation.
Describe the solution you'd like
Similar as what was discussed in #4093, we should support using
Message<T>as the input for a source or a function.Describe alternatives you've considered
N/A