flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lydia Ickler <ickle...@googlemail.com>
Subject Re: writeAsCsv
Date Wed, 07 Oct 2015 19:43:26 GMT
ok, thanks! :)

I will try that!



> Am 07.10.2015 um 21:35 schrieb Lydia Ickler <icklerly@googlemail.com>:
> 
> Hi, 
> 
> stupid question: Why is this not saved to file?
> I want to transform an array to a DataSet but the Graph stops at collect().
> 
> //Transform Spectrum to DataSet
> List<Tuple2<String, String>> dataList = new LinkedList<Tuple2<String,
String>>();
> double[][] arr = filteredSpectrum.getAs2DDoubleArray();
> for (int i=0;i<arr[0].length;i++) {
>     dataList.add(new Tuple2( arr[0][i], arr[1][i]));
> }
> env.fromCollection(dataList).writeAsCsv(output);
> Best regards, 
> Lydia
> 


Mime
View raw message