momo-jun commented on code in PR #16816:
URL: https://github.com/apache/pulsar/pull/16816#discussion_r931713881


##########
site2/docs/functions-develop-api.md:
##########
@@ -102,6 +102,13 @@ public class ExclamationFunction implements 
Function<String, String> {
 
 For more details, see [code 
example](https://github.com/apache/pulsar/blob/master/pulsar-functions/java-examples/src/main/java/org/apache/pulsar/functions/api/examples/ExclamationFunction.java).
 
+:::note
+
+The return type of the `Function` can be wrapped in a Pulsar `Record` generic 
which gives more control on the output message (topic, schema, properties, ...)
+You can use the `Context::newOutputRecordBuilder` method to build this 
`Record` output.

Review Comment:
   Yes, if you have a specific use case to write a function for because the 
current tutorial page is use-case-based.
   Or you can create a new topic under the "Develop" section to introduce the 
new method/context.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to