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

To construct indexedRDD in Java #24

Open
shijiel opened this issue Nov 9, 2016 · 0 comments
Open

To construct indexedRDD in Java #24

shijiel opened this issue Nov 9, 2016 · 0 comments

Comments

@shijiel
Copy link

shijiel commented Nov 9, 2016

Hi,
I try to create an simple indexedRDD in java.
Here is my code:

List data = Arrays.asList(1, 2, 3, 4, 5);
JavaPairRDD<Long, Integer> distData = sc.parallelize(data).mapToPair(v -> new Tuple2(v.longValue(),0));
IndexedRDD<Long, Integer> mytest = new IndexedRDD<Long, Integer>(distData);

It has some errors, is there anyone help?

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

1 participant