flink-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Metzger <rmetz...@apache.org>
Subject Re: DataSet transformation
Date Thu, 01 Oct 2015 13:18:04 GMT
Hi,

for that you have to collect the dataset to your local machine and then
transform the collection into the array.
Note that this only advised for small data sets.

Robert



On Thu, Oct 1, 2015 at 2:13 PM, Lydia Ickler <icklerly@googlemail.com>
wrote:

> Hi all,
>
> so I have a case class Spectrum(mz: Float, intensity: Float)
> and a DataSet[Spectrum] to read my data in.
>
> Now I want to know if there is a smart way to transform my DataSet into a
> two dimensional Array ?
>
> Thanks in advance,
> Lydia
>
>

Mime
View raw message