答复: 答复: How can I get the column data based on specific column name and then stored these data in array or list ?

2015-12-25 Thread zml
咦 ??? I will have a try. Thanks, Minglei. 发件人: Yanbo Liang [mailto:yblia...@gmail.com] 发送时间: 2015年12月25日 16:07 收件人: Jeff Zhang 抄送: zml张明磊; dev@spark.apache.org 主题: Re: 答复: How can I get the column data based on specific column name and then stored these data in array or list ? Actually you can

答复: 答复: How can I get the column data based on specific column name and then stored these data in array or list ?

2015-12-25 Thread zml
Yes. It’s a good method . But UDF ? What is UDF ? U…..D…F ? OK, I can learn from it. Thanks, Minglei. 发件人: Jeff Zhang [mailto:zjf...@gmail.com] 发送时间: 2015年12月25日 16:00 收件人: zml张明磊 抄送: dev@spark.apache.org 主题: Re: 答复: How can I get the column data based on specific column name and

答复: How can I get the column data based on specific column name and then stored these data in array or list ?

2015-12-24 Thread zml
Thanks, Jeff. It’s not choose some columns of a Row. It’s just choose all data in a column and convert it to an Array. Do you understand my mean ? In Chinese 我是想基于这个列名把这一列中的所有数据都选出来,然后放到数组里面去。 发件人: Jeff Zhang [mailto:zjf...@gmail.com] 发送时间: 2015年12月25日 15:39 收件人: zml张明磊 抄送: dev

How can I get the column data based on specific column name and then stored these data in array or list ?

2015-12-24 Thread zml
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