You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by rlazoti <ro...@gmail.com> on 2017/10/11 15:41:35 UTC

Write each group to its own file

Hi,

Is there a way to write each group to its own file using the Dataset api
(Batch)?

For example, lets use the following class:


And the following Dataset:



So in this example my output should be these 3 files:

- cpu.csv
i7, cpu
R5, cpu

- gpu.csv
gtx1080, gpu
vega64, gpu

- ssd.csv
evo250gb, ssd


I tried the following code, but got
org.apache.flink.api.common.InvalidProgramException: Task not serializable.



I welcome any of your inputs.

Thanks!



--
Sent from: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/