-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[MINOR] Move java file to java directory #24222
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
Hi @srowen, can you help to review. Thanks a lot. |
I agree with moving the code, but why change the package? |
Offset.java can be moved too? |
+1 for @srowen 's comment. We should keep the package name. |
ok to test |
Test build #103982 has finished for PR 24222 at commit
|
thanks @srowen @dongjoon-hyun for the review. I am referring to @cloud-fan 's point of view.
Will move it later. |
These 2 interfaces are internal and I don't think we can move them to a public package now. |
thanks @cloud-fan, just move those files to java directory. |
Test build #104038 has finished for PR 24222 at commit
|
I'm looking at |
thanks @srowen for point out it. I have moved it too. |
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.
LGTM
I have not found any other '*.java" file under scala directories which can be moved.
I used the following search:
$ find . -name "scala" -exec find \{} -name "*.java" \; | grep -v package-info
./mllib/src/main/scala/org/apache/spark/mllib/JavaPackage.java
./sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/BaseStreamingSink.java
./sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/BaseStreamingSource.java
./sql/core/src/main/scala/org/apache/spark/sql/execution/streaming/Offset.java
JavaPackage.java must be kept in its current place as:
/**
* A dummy class as a workaround to show the package doc of <code>spark.mllib</code> in generated
* Java API docs.
* @see <a href="http://bugs.java.com/bugdatabase/view_bug.do?bug_id=4492654" target="_blank">
* JDK-4492654</a>
*/
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.
LG pending tests
Test build #104047 has finished for PR 24222 at commit
|
Merged to master |
thanks everyone. |
## What changes were proposed in this pull request? move ```scala org.apache.spark.sql.execution.streaming.BaseStreamingSource org.apache.spark.sql.execution.streaming.BaseStreamingSink ``` to java directory ## How was this patch tested? Existing UT. Closes apache#24222 from ConeyLiu/move-scala-to-java. Authored-by: Xianyang Liu <xianyang.liu@intel.com> Signed-off-by: Sean Owen <sean.owen@databricks.com>
What changes were proposed in this pull request?
move
to java directory
How was this patch tested?
Existing UT.