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");
}
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));
}
Aggregations