@@ -540,7 +540,7 @@ private[spark] class BlockManager(
540540 // If we're storing bytes, then initiate the replication before storing them locally.
541541 // This is faster as data is already serialized and ready to send.
542542 val replicationFuture = if (data.isInstanceOf [ByteBufferValues ] && level.replication > 1 ) {
543- // Duplicate doesn't copy the bytes, just creates a wrapper
543+ // Duplicate doesn't copy the bytes, just creates a wrapper
544544 val bufferView = data.asInstanceOf [ByteBufferValues ].buffer.duplicate()
545545 Future {
546546 replicate(blockId, bufferView, level)
@@ -559,13 +559,13 @@ private[spark] class BlockManager(
559559 // Save it just to memory first, even if it also has useDisk set to true; we will
560560 // drop it to disk later if the memory store can't hold it.
561561 val res = data match {
562- case IteratorValues (values_i ) =>
563- memoryStore.putValues(blockId, values_i , level, true )
564- case ArrayBufferValues (values_a ) =>
565- memoryStore.putValues(blockId, values_a , level, true )
566- case ByteBufferValues (value_bytes ) => {
567- value_bytes .rewind();
568- memoryStore.putBytes(blockId, value_bytes , level)
562+ case IteratorValues (iterator ) =>
563+ memoryStore.putValues(blockId, iterator , level, true )
564+ case ArrayBufferValues (array ) =>
565+ memoryStore.putValues(blockId, array , level, true )
566+ case ByteBufferValues (bytes ) => {
567+ bytes .rewind();
568+ memoryStore.putBytes(blockId, bytes , level)
569569 }
570570 }
571571 size = res.size
@@ -579,13 +579,13 @@ private[spark] class BlockManager(
579579 val askForBytes = level.replication > 1
580580
581581 val res = data match {
582- case IteratorValues (values_i ) =>
583- diskStore.putValues(blockId, values_i , level, askForBytes)
584- case ArrayBufferValues (values_a ) =>
585- diskStore.putValues(blockId, values_a , level, askForBytes)
586- case ByteBufferValues (value_bytes ) => {
587- value_bytes .rewind();
588- diskStore.putBytes(blockId, value_bytes , level)
582+ case IteratorValues (iterator ) =>
583+ diskStore.putValues(blockId, iterator , level, askForBytes)
584+ case ArrayBufferValues (array ) =>
585+ diskStore.putValues(blockId, array , level, askForBytes)
586+ case ByteBufferValues (bytes ) => {
587+ bytes .rewind();
588+ diskStore.putBytes(blockId, bytes , level)
589589 }
590590 }
591591 size = res.size
0 commit comments