Search in sources :

Example 1 with StringTupleDeserializerMap

use of org.apache.flink.python.api.functions.util.StringTupleDeserializerMap in project flink by apache.

the class PythonPlanBinder method createCsvSink.

@SuppressWarnings("unchecked")
private void createCsvSink(PythonOperationInfo info) throws IOException {
    DataSet parent = (DataSet) sets.get(info.parentID);
    parent.map(new StringTupleDeserializerMap()).setParallelism(getParallelism(info)).name("CsvSinkPreStep").writeAsCsv(info.path, info.lineDelimiter, info.fieldDelimiter, info.writeMode).setParallelism(getParallelism(info)).name("CsvSink");
}
Also used : StringTupleDeserializerMap(org.apache.flink.python.api.functions.util.StringTupleDeserializerMap) DataSet(org.apache.flink.api.java.DataSet)

Aggregations

DataSet (org.apache.flink.api.java.DataSet)1 StringTupleDeserializerMap (org.apache.flink.python.api.functions.util.StringTupleDeserializerMap)1