Skip to content
Snippets Groups Projects
Commit fb759987 authored by Stephen Haberman's avatar Stephen Haberman
Browse files

Fix JavaRDDLike.coalesce return type.

parent 2a18cd82
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ trait JavaRDDLike[T, This <: JavaRDDLike[T, This]] extends PairFlatMapWorkaround
/**
* Return a new RDD that is reduced into `numSplits` partitions.
*/
def coalesce(numSplits: Int): RDD[T] = rdd.coalesce(numSplits)
def coalesce(numSplits: Int): JavaRDD[T] = rdd.coalesce(numSplits)
/**
* Return an RDD of grouped elements. Each group consists of a key and a sequence of elements
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment