Skip to content

Commit

Permalink
Fix scala style
Browse files Browse the repository at this point in the history
  • Loading branch information
tdas committed May 7, 2015
1 parent fbf7174 commit d654978
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ class TestInputStream[T: ClassTag](ssc_ : StreamingContext, input: Seq[Seq[T]],
*
* The buffer contains a sequence of RDD's, each containing a sequence of items
*/
class TestOutputStream[T: ClassTag](parent: DStream[T],
val output: SynchronizedBuffer[Seq[T]] = new ArrayBuffer[Seq[T]] with SynchronizedBuffer[Seq[T]])
extends ForEachDStream[T](parent, (rdd: RDD[T], t: Time) => {
class TestOutputStream[T: ClassTag](
parent: DStream[T],
val output: SynchronizedBuffer[Seq[T]] =
new ArrayBuffer[Seq[T]] with SynchronizedBuffer[Seq[T]]
) extends ForEachDStream[T](parent, (rdd: RDD[T], t: Time) => {
val collected = rdd.collect()
output += collected
}) {
Expand Down

0 comments on commit d654978

Please sign in to comment.