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

Add a simple SparkExample #56

Merged
merged 4 commits into from
Feb 7, 2020
Merged

Conversation

critical27
Copy link
Contributor

No description provided.

@darionyaphet
Copy link
Contributor

Thanks for your great work :) Could you support an example about the Spark example ?

@critical27
Copy link
Contributor Author

Thanks for your great work :) Could you support an example about the Spark example ?

Yeah, there is a simple example in SparkExample.java, which generate a JavaRDD from csv file, and do some simple work.

@@ -149,6 +150,26 @@ public static void main(String[] args) {
value.columns.get(1).getInteger(),
new String(value.columns.get(2).getStr())));
}

// Batch insert some edges for ScanEdgeInSpaceExample and SparkExample
for (long src = 1; src <= 10; src++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should have a test dataset. It's used by all the test case.

Copy link
Contributor Author

@critical27 critical27 Feb 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea, fixed

@darionyaphet darionyaphet merged commit 732bf04 into vesoft-inc:master Feb 7, 2020
@critical27 critical27 deleted the spark branch June 5, 2020 08:00
Nicole00 pushed a commit that referenced this pull request Oct 22, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants