Skip to content

Commit

Permalink
Scala style fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
tdas committed Apr 16, 2014
1 parent 028bde6 commit 8533094
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ object JavaPairInputDStream {
inputDStream: InputDStream[(K, V)]): JavaPairInputDStream[K, V] = {
new JavaPairInputDStream[K, V](inputDStream)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ private[streaming] class NetworkReceiverExecutorImpl(

/** Report pushed block */
def reportPushedBlock(blockId: StreamBlockId, numRecords: Long, optionalMetadata: Option[Any]) {
trackerActor ! AddBlock(ReceivedBlockInfo(receiverId, blockId, numRecords, optionalMetadata.orNull))
val blockInfo = ReceivedBlockInfo(receiverId, blockId, numRecords, optionalMetadata.orNull)
trackerActor ! AddBlock(blockInfo)
logDebug("Reported block " + blockId)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,14 @@ import java.nio.ByteBuffer

import scala.collection.mutable.ArrayBuffer

import org.apache.spark.SparkConf
import org.apache.spark.storage.{StorageLevel, StreamBlockId}
import org.apache.spark.streaming.receiver.{BlockGenerator, BlockGeneratorListener, NetworkReceiver, NetworkReceiverExecutor}
import org.scalatest.FunSuite
import org.scalatest.concurrent.Timeouts
import org.scalatest.concurrent.Eventually._
import org.scalatest.time.SpanSugar._

import org.apache.spark.SparkConf
import org.apache.spark.storage.{StorageLevel, StreamBlockId}
import org.apache.spark.streaming.receiver.{BlockGenerator, BlockGeneratorListener, NetworkReceiver, NetworkReceiverExecutor}
import org.apache.spark.streaming.receiver.NetworkReceiverExecutor
/** Testsuite for testing the network receiver behavior */
class NetworkReceiverSuite extends FunSuite with Timeouts {

Expand Down

0 comments on commit 8533094

Please sign in to comment.