This is an automated email from the ASF dual-hosted git repository.

zkaoudi pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-wayang-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 987f64a4 api when adding new operator (#62)
987f64a4 is described below

commit 987f64a4a85758c3ad32459f9755779159da1baf
Author: Zoi Kaoudi <[email protected]>
AuthorDate: Mon Nov 4 09:04:50 2024 +0100

    api when adding new operator (#62)
    
    * tensorflow blogpost
    
    * Update add-an-operator.md
    
    added the process of expanding the api when adding a new operator
    
    * Update add-an-operator.md
---
 docs/guide/add-an-operator.md | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/docs/guide/add-an-operator.md b/docs/guide/add-an-operator.md
index b0dbf138..b35fcf15 100644
--- a/docs/guide/add-an-operator.md
+++ b/docs/guide/add-an-operator.md
@@ -48,3 +48,5 @@ For the above ```MapOperator``` and ```JavaMapOperator```, 
see [here](https://gi
 
 After that you need to declare this mapping in Wayang in the corresponding 
[```Mappings```](https://github.com/apache/incubator-wayang/blob/main/wayang-platforms/wayang-java/src/main/java/org/apache/wayang/java/mapping/Mappings.java#L37)
 class.
 
+## Step 4: Expand the Java scala-like API
+Once you created a new operator you need to expose it to the API so that users 
can use it as a function in the dataflow job they create. For this, you need to 
go to the module ```wayang-api/wayang-api-scala-java``` and expand the 
```JavaPlanBuilder.scala``` file to include a new source operator or the 
```DataQuantaBuilder``` for non-source operators.

Reply via email to