@@ -40,9 +40,9 @@ private[spark] class HttpBroadcast[T: ClassTag](
4040 @ transient var value_ : T , isLocal : Boolean , id : Long )
4141 extends Broadcast [T ](id) with Logging with Serializable {
4242
43- def getValue = value_
43+ override protected def getValue () = value_
4444
45- val blockId = BroadcastBlockId (id)
45+ private val blockId = BroadcastBlockId (id)
4646
4747 /*
4848 * Broadcasted data is also stored in the BlockManager of the driver. The BlockManagerMaster
@@ -60,14 +60,14 @@ private[spark] class HttpBroadcast[T: ClassTag](
6060 /**
6161 * Remove all persisted state associated with this HTTP broadcast on the executors.
6262 */
63- def doUnpersist (blocking : Boolean ) {
63+ override protected def doUnpersist (blocking : Boolean ) {
6464 HttpBroadcast .unpersist(id, removeFromDriver = false , blocking)
6565 }
6666
6767 /**
6868 * Remove all persisted state associated with this HTTP broadcast on the executors and driver.
6969 */
70- def doDestroy (blocking : Boolean ) {
70+ override protected def doDestroy (blocking : Boolean ) {
7171 HttpBroadcast .unpersist(id, removeFromDriver = true , blocking)
7272 }
7373
@@ -102,7 +102,7 @@ private[spark] class HttpBroadcast[T: ClassTag](
102102 }
103103}
104104
105- private [spark ] object HttpBroadcast extends Logging {
105+ private [broadcast ] object HttpBroadcast extends Logging {
106106 private var initialized = false
107107 private var broadcastDir : File = null
108108 private var compress : Boolean = false
@@ -160,7 +160,7 @@ private[spark] object HttpBroadcast extends Logging {
160160
161161 def getFile (id : Long ) = new File (broadcastDir, BroadcastBlockId (id).name)
162162
163- def write (id : Long , value : Any ) {
163+ private def write (id : Long , value : Any ) {
164164 val file = getFile(id)
165165 val out : OutputStream = {
166166 if (compress) {
@@ -176,7 +176,7 @@ private[spark] object HttpBroadcast extends Logging {
176176 files += file
177177 }
178178
179- def read [T : ClassTag ](id : Long ): T = {
179+ private def read [T : ClassTag ](id : Long ): T = {
180180 logDebug(" broadcast read server: " + serverUri + " id: broadcast-" + id)
181181 val url = serverUri + " /" + BroadcastBlockId (id).name
182182
0 commit comments