GitHub user chenghao-intel opened a pull request:
https://github.com/apache/spark/pull/8450
[SPARK-10270][SQL][WIP]Add more java-friendly DF API
Currently in DataFrame, we have API like:
```scala
def join(right: DataFrame, usingColumns: Seq[String]): DataFrame
def dropDuplicates(colNames: Seq[String]): DataFrame
def dropDuplicates(colNames: Array[String]): DataFrame
```
Those API not like the so friendly to Java programmers, change it to:
```scala
def join(right: DataFrame, usingColumns: String*): DataFrame
def dropDuplicates(colNames: String*): DataFrame
```
However, when implemeting the
```scala
def join(right: DataFrame, usingColumns: String*): DataFrame
def dropDuplicates(colNames: String*): DataFrame
```
There are compiling error says duplicated method with `String*` and
`Seq[String]`, so we change the API like:
```scala
def join(right: DataFrame, colName: String, usingColumns: String*):
DataFrame
def dropDuplicates(colName: String, colNames: String*): DataFrame
```
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/chenghao-intel/spark df
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/8450.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #8450
----
commit fe4c0fd2c4aab0e631e3d485714ed20e6c64da2c
Author: Cheng Hao <[email protected]>
Date: 2015-08-26T04:05:37Z
add more java-friendly DF API
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]