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.SinkFunctionorg.apache.flink.streaming.api.functions.sink.RichSinkFunctionIn your program use:
stream.addSink(SinkFunction<T> sinkFunction);
instead of stream.writeCsv("/output/somewhere").