[functions] change instance id from string to int and expose number of instances in context (#2411)
* [functions] change instance id from string to int and expose number of instances in context ### Motivation When writing a connector reading from a list of sources, it is hard for the connector implementation to decide how to distribute the list of sources across the function instances. because there is no way to tell how many function instances is running. ### Changes - change instance id from string to integer (since the implementation is already assuming instance id is an integer) - add getNumInstances in the context - expose both interfaces in source and sink connector context * Fix compilation
Showing
想要评论请 注册 或 登录