For RDD you can use flatMap, for DataFrames explode would be the best fit.

On 14 March 2016 at 08:28, lizhenm...@163.com <lizhenm...@163.com> wrote:

>
> hi:
>  *I want to *convert the RDD[Array[Double]] to RDD[Double]. for example,
> t stored 1.0 2.0 3.0   in the file , how i read
>
>                                                                 4.0 5.0 6.0
> the file and convert it to RDD[Double]. Thanks.
> ------------------------------
> lizhenm...@163.com
>

Reply via email to