spark-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: How can I get the column data based on specific column name and then stored these data in array or list ?
Date Fri, 25 Dec 2015 07:39:03 GMT
Not sure what you mean. Do you want to choose some columns of a Row and
convert it to an Arrray ?

On Fri, Dec 25, 2015 at 3:35 PM, zml张明磊 <mingleizhang@ctrip.com> wrote:

>
>
> Hi,
>
>
>
>        I am a new to Scala and Spark and trying to find relative API in DataFrame
> to solve my problem as title described. However, I just only find this API *DataFrame.col(colName
> : String) : Column * which returns an object of Column. Not the content.
> If only DataFrame support such API which like *Column.toArray : Type* is
> enough for me. But now, it doesn’t. How can I do can achieve this function
> ?
>
>
>
> Thanks,
>
> Minglei.
>



-- 
Best Regards

Jeff Zhang

Mime
View raw message