Package org.apache.spark.util
Class SparkClosureCleaner
Object
org.apache.spark.util.SparkClosureCleaner
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
SparkClosureCleanerpublic SparkClosureCleaner()
 
- 
- 
Method Details- 
cleanClean the given closure in place.More specifically, this renders the given closure serializable as long as it does not explicitly reference unserializable objects. - Parameters:
- closure- the closure to clean
- checkSerializable- whether to verify that the closure is serializable after cleaning
- cleanTransitively- whether to clean enclosing closures transitively
 
 
-