Skip to content

Commit

Permalink
[TRIVIAL][DOCS][STREAMING][SQL] The return type mentioned in the Java…
Browse files Browse the repository at this point in the history
…doc is incorrect for toJavaRDD, …

## What changes were proposed in this pull request?

Change the return type mentioned in the JavaDoc for `toJavaRDD` / `javaRDD` to match the actual return type & be consistent with the scala rdd return type.

## How was this patch tested?

Docs only change.

Author: Holden Karau <[email protected]>

Closes apache#13954 from holdenk/trivial-streaming-tojavardd-doc-fix.
  • Loading branch information
holdenk authored and tdas committed Jun 29, 2016
1 parent f454a7f commit 757dc2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/core/src/main/scala/org/apache/spark/sql/Dataset.scala
Original file line number Diff line number Diff line change
Expand Up @@ -2383,14 +2383,14 @@ class Dataset[T] private[sql](
}

/**
* Returns the content of the Dataset as a [[JavaRDD]] of [[Row]]s.
* Returns the content of the Dataset as a [[JavaRDD]] of [[T]]s.
* @group basic
* @since 1.6.0
*/
def toJavaRDD: JavaRDD[T] = rdd.toJavaRDD()

/**
* Returns the content of the Dataset as a [[JavaRDD]] of [[Row]]s.
* Returns the content of the Dataset as a [[JavaRDD]] of [[T]]s.
* @group basic
* @since 1.6.0
*/
Expand Down

0 comments on commit 757dc2c

Please sign in to comment.