In Apache Flink I have a stream of tuples. Let\'s assume a really simple Tuple1
. The tuple can have an arbitrary value in it\'s value field (e.g. \'P1
You can implement a custom sink. Inherit from one of both:
org.apache.flink.streaming.api.functions.sink.SinkFunction
org.apache.flink.streaming.api.functions.sink.RichSinkFunction
In your program use:
stream.addSink(SinkFunction<T> sinkFunction);
instead of stream.writeCsv("/output/somewhere")
.