yjshen commented on issue #5934: Can support read/write properties from/to 
Message in flink pulsar consumer/producer
URL: https://github.com/apache/pulsar/issues/5934#issuecomment-568889578
 
 
   Hi @duli559 , thanks for bringing this up.
   
   For the consumer, I think the proposed way is possible, your derived class 
could return a Tuple (Map, T) for each message, and use the tuple afterward.
   
   For the producer, the `invoke` method is invoked for each `value` in the 
stream, therefore,  you should use this `value` and tell which part goes into 
properties and which part went goes into Message body. I think you could extend 
the existing `FlinkPulsarProducer` directly and just overwrite the `invoke` 
method?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to