flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] hequn8128 commented on a change in pull request #7196: [FLINK-10974] [table] Add support for flatMap to table API
Date Mon, 08 Apr 2019 06:44:26 GMT
hequn8128 commented on a change in pull request #7196: [FLINK-10974] [table] Add support for
flatMap to table API
URL: https://github.com/apache/flink/pull/7196#discussion_r272877780
 
 

 ##########
 File path: docs/dev/table/tableApi.md
 ##########
 @@ -1847,6 +1847,22 @@ Table table = input
       </td>
     </tr>
 
+    <tr>
+      <td>
+        <strong>FlatMap</strong><br>
+        <span class="label label-primary">Batch</span> <span class="label
label-primary">Streaming</span>
+      </td>
+      <td>
+        <p>Performs a flatMap operation with a table function.</p>
+{% highlight java %}
+TableFunction func = new MyFlatMapFunction();
+tableEnv.registerFunction("func", func);
+
+Table table = input
+  .flatMap(func("c"))
 
 Review comment:
   .flatMap("func(c)"). Same for the map function.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message