Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Want to create a Row Object In Java #25

Open
SushantVarshney opened this issue Sep 14, 2016 · 1 comment
Open

Want to create a Row Object In Java #25

SushantVarshney opened this issue Sep 14, 2016 · 1 comment

Comments

@SushantVarshney
Copy link

In my analysis code I want to create a JavaRDD of type Row from another data.
Can u provide me solution for this

@tahervali
Copy link

Step 1.
Convert a Collection of Strings or a text file to JavaRDD .

  1. sparkContext.parallize(collection)

Step 2.
Map the stringRDD to a rowRDD
2)rdd.map(RowFactory.create(string[0],string[1])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants