-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
Conversation
cc @MLnick |
|
||
long cntSignificant = rdd.filter(new Function<StreamingTestResult, Boolean>() { | ||
boolean anySignificant = ! rdd.filter(new Function<StreamingTestResult, Boolean>() { |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Agreed, LGTM pending Sean's comment. @srowen thanks for the catch, I'll not be too hasty next time :) |
Test build #53532 has finished for PR 11821 at commit
|
Test build #53533 has finished for PR 11821 at commit
|
Merged to master |
## 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 <[email protected]> Closes apache#11821 from zhengruifeng/je_fix.
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