Package org.apache.spark.util
Class ClosureCleaner
Object
org.apache.spark.util.ClosureCleaner
A cleaner that renders closures serializable if they can be done so safely.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Clean the given closure in place.static org.slf4j.Logger
static void
org$apache$spark$internal$Logging$$log__$eq
(org.slf4j.Logger x$1)
-
Constructor Details
-
ClosureCleaner
public ClosureCleaner()
-
-
Method Details
-
clean
Clean 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 cleancheckSerializable
- whether to verify that the closure is serializable after cleaningcleanTransitively
- whether to clean enclosing closures transitively
-
org$apache$spark$internal$Logging$$log_
public static org.slf4j.Logger org$apache$spark$internal$Logging$$log_() -
org$apache$spark$internal$Logging$$log__$eq
public static void org$apache$spark$internal$Logging$$log__$eq(org.slf4j.Logger x$1)
-