-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-11663][Streaming]Add Java API for trackStateByKey #9636
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
Conversation
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.
Can you use the simple function API in this example?
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.
Need the key to emit the word and its count
|
Removed JavaState and JavaStateSpec |
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.
Please add JavaPairDStream back in the docs.
|
Test build #45672 has finished for PR 9636 at commit
|
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.
Does this automatically link to the Scala docs of JavaDStream? May be safer to do [[org.apache....JavaDStream JavaDStream]]
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.
I think it's fine for classes in the same package. Take a look at: http://spark.apache.org/docs/latest/api/scala/index.html#org.apache.spark.sql.DataFrame
|
Test build #45677 has finished for PR 9636 at commit
|
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.
Shouldnt these be JavaTrackStateDStream<Integer, Integer, Integer, String>??
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.
Make sure that the code would compile
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.
Just went through all examples and fixed them
|
Test build #45692 has finished for PR 9636 at commit
|
|
retest this please |
|
Test build #45697 has finished for PR 9636 at commit
|
|
Test build #45704 has finished for PR 9636 at commit
|
|
Test build #45711 has finished for PR 9636 at commit
|
|
retest this please |
|
Test build #45751 has finished for PR 9636 at commit
|
|
retest this please |
|
Test build #45761 has finished for PR 9636 at commit
|
|
retest this please |
|
Test build #45780 has finished for PR 9636 at commit
|
|
Thanks @zsxwing I am merging this to master and 1.6 |
TODO - [x] Add Java API - [x] Add API tests - [x] Add a function test Author: Shixiong Zhu <[email protected]> Closes #9636 from zsxwing/java-track. (cherry picked from commit 0f1d00a) Signed-off-by: Tathagata Das <[email protected]>
TODO - [x] Add Java API - [x] Add API tests - [x] Add a function test Author: Shixiong Zhu <[email protected]> Closes apache#9636 from zsxwing/java-track.
TODO