问题 1
Explain the concept of lazy evaluation in Apache Spark.
Lazy evaluation is a strategy in which the execution of operations is delayed until the result is actually needed. This helps in optimizing the execution plan.
Example:
val filteredRDD = inputRDD.filter(x => x > 0)
filteredRDD.count()
保存以便复习
保存以便复习
收藏此条目、标记为困难题,或将其加入复习集合。
这有帮助吗?
添加评论
查看评论