[PIP 86] add doc for initialize function interface#14315
[PIP 86] add doc for initialize function interface#14315Anonymitaet merged 7 commits intoapache:masterfrom
Conversation
site2/docs/functions-develop.md
Outdated
| } | ||
| } | ||
| ``` | ||
| Notice that to use initialize interface, you should set up Pulsar Functions worker 2.10.0 or later. |
There was a problem hiding this comment.
This notice can be deleted because the information has been clarified in the beginning.
| ``` | ||
| Notice that to use initialize interface, you should set up Pulsar Functions worker 2.10.0 or later. | ||
|
|
||
| <!--END_DOCUSAURUS_CODE_TABS--> |
There was a problem hiding this comment.
It should be the end of the last section.
momo-jun
left a comment
There was a problem hiding this comment.
Hi @wangjialing218, thanks for your contribution to doc.
As we discussed, I proposed a few changes. PTAL.
|
In addition, the following content needs to be added to the "Available APIs" section.
|
Co-authored-by: momo-jun <60642177+momo-jun@users.noreply.github.com>
|
@momo-jun Please have a look |
f1d4152 to
4739755
Compare
Co-authored-by: momo-jun <60642177+momo-jun@users.noreply.github.com>
Co-authored-by: momo-jun <60642177+momo-jun@users.noreply.github.com>
Thank you for making these changes. Looks good to me now. Hi @nlu90 @merlimat @Anonymitaet, can you please help review this doc PR? Thanks. |
site2/docs/functions-develop.md
Outdated
| import org.apache.pulsar.functions.api.Function; | ||
|
|
||
| public class InitializableFunction implements Function<String, String> { | ||
| private RedisClient client; |
There was a problem hiding this comment.
this example seems not a complete and build-able, for example, it uses RedisClient but no import, it calls init but havnt declared, so would you please fix this example to be a build and runnable code? thanks.
|
@freeznet Done, please have a check. |
Motivation
add doc for #13205
Documentation
doc