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

[Minor][DOC] Fix nits in JavaStreamingTestExample #11821

Closed
wants to merge 3 commits into from

Conversation

zhengruifeng
Copy link
Contributor

What changes were proposed in this pull request?

Fix some nits discussed in #11776 (comment)
use !rdd.isEmpty instead of rdd.count > 0
use static instead of AtomicInteger
remove unneeded "throws Exception"

How was this patch tested?

manual tests

@zhengruifeng
Copy link
Contributor Author

cc @MLnick


long cntSignificant = rdd.filter(new Function<StreamingTestResult, Boolean>() {
boolean anySignificant = ! rdd.filter(new Function<StreamingTestResult, Boolean>() {
Copy link
Member

Choose a reason for hiding this comment

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

(No space after "!")
Looking good, thank you for indulging. The example is now about as close as possible to the scala version

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, the space is removed.

@MLnick
Copy link
Contributor

MLnick commented Mar 18, 2016

Agreed, LGTM pending Sean's comment. @srowen thanks for the catch, I'll not be too hasty next time :)

@SparkQA
Copy link

SparkQA commented Mar 18, 2016

Test build #53532 has finished for PR 11821 at commit 09ad928.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Mar 18, 2016

Test build #53533 has finished for PR 11821 at commit 9a16f30.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@srowen
Copy link
Member

srowen commented Mar 18, 2016

Merged to master

@asfgit asfgit closed this in 53f32a2 Mar 18, 2016
@zhengruifeng zhengruifeng deleted the je_fix branch March 20, 2016 11:41
roygao94 pushed a commit to roygao94/spark that referenced this pull request Mar 22, 2016
## What changes were proposed in this pull request?

Fix some nits discussed in apache#11776 (comment)
use !rdd.isEmpty instead of rdd.count > 0
use static instead of AtomicInteger
remove unneeded "throws Exception"

## How was this patch tested?

manual tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes apache#11821 from zhengruifeng/je_fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants