关注 spark技术分享,
撸spark源码 玩spark最佳实践

BlockRDD

BlockRDD

BlockRDD is an RDD that is created when Spark Streaming’s ReceiverInputDStream is requested to compute and createBlockRDD.

Spark Streaming calls BlockRDD.removeBlocks() while clearing metadata.

Note
It appears that BlockRDD is used in Spark Streaming exclusively.

Computing Partition (in TaskContext) — compute Method

Note
compute is part of RDD Contract to compute a partition (in a TaskContext).

compute…​FIXME

getPartitions Method

Note
getPartitions is part of RDD Contract to…​FIXME.

getPartitions…​FIXME

getPreferredLocations Method

Note
getPreferredLocations is part of RDD Contract to…​FIXME.

getPreferredLocations…​FIXME

Creating BlockRDD Instance

BlockRDD takes the following when created:

BlockRDD initializes the internal registries and counters.

赞(0) 打赏
未经允许不得转载:spark技术分享 » BlockRDD
分享到: 更多 (0)

关注公众号:spark技术分享

联系我们联系我们

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏