aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/scala/spark/storage/PutResult.scala
blob: 76f236057b2cff94338552c04d3cbf691875cc02 (plain) (blame)
1
2
3
4
5
6
7
8
9
package spark.storage

import java.nio.ByteBuffer

/**
 * Result of adding a block into a BlockStore. Contains its estimated size, and possibly the
 * values put if the caller asked for them to be returned (e.g. for chaining replication)
 */
private[spark] case class PutResult(size: Long, data: Either[Iterator[_], ByteBuffer])