Skip to content

Commit

Permalink
In JavaPairDStream, make class tag specification in rightOuterJoin co…
Browse files Browse the repository at this point in the history
…nsistent with other functions.
  • Loading branch information
staple committed Sep 8, 2014
1 parent 31f2956 commit 3b5d137
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ class JavaPairDStream[K, V](val dstream: DStream[(K, V)])(
* number of partitions.
*/
def rightOuterJoin[W](other: JavaPairDStream[K, W]): JavaPairDStream[K, (Optional[V], W)] = {
implicit val cm: ClassTag[W] =
implicitly[ClassTag[AnyRef]].asInstanceOf[ClassTag[W]]
implicit val cm: ClassTag[W] = fakeClassTag
val joinResult = dstream.rightOuterJoin(other.dstream)
joinResult.mapValues{case (v, w) => (JavaUtils.optionToOptional(v), w)}
}
Expand Down

0 comments on commit 3b5d137

Please sign in to comment.