Search in sources :

Example 1 with StringDeserializerMap

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

the class PythonPlanBinder method createTextSink.

@SuppressWarnings("unchecked")
private void createTextSink(PythonOperationInfo info) throws IOException {
    DataSet parent = (DataSet) sets.get(info.parentID);
    parent.map(new StringDeserializerMap()).setParallelism(getParallelism(info)).writeAsText(info.path, info.writeMode).setParallelism(getParallelism(info)).name("TextSink");
}
Also used : DataSet(org.apache.flink.api.java.DataSet) StringDeserializerMap(org.apache.flink.python.api.functions.util.StringDeserializerMap)

Example 2 with StringDeserializerMap

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

the class PythonPlanBinder method createPrintSink.

@SuppressWarnings("unchecked")
private void createPrintSink(PythonOperationInfo info) throws IOException {
    DataSet parent = (DataSet) sets.get(info.parentID);
    parent.map(new StringDeserializerMap()).setParallelism(getParallelism(info)).name("PrintSinkPreStep").output(new PrintingOutputFormat(info.toError)).setParallelism(getParallelism(info));
}
Also used : DataSet(org.apache.flink.api.java.DataSet) StringDeserializerMap(org.apache.flink.python.api.functions.util.StringDeserializerMap) PrintingOutputFormat(org.apache.flink.api.java.io.PrintingOutputFormat)

Aggregations

DataSet (org.apache.flink.api.java.DataSet)2 StringDeserializerMap (org.apache.flink.python.api.functions.util.StringDeserializerMap)2 PrintingOutputFormat (org.apache.flink.api.java.io.PrintingOutputFormat)1