InterviewSolution
Saved Bookmarks
| 1. |
File format support by Spark? How the lazy evaluation works in Spark? |
Answer»
Lazy evaluation in spark works to instantiate the variable when its really required for INSTANCE like when spark do the transformation, till this time it’s not computed, however when we APPLIED the action than its compute the DATA. Spark delays its evaluation till it is NECESSARY. Eg: lazy val lazydata = 10 |
|