implicit final class UnpersistWrapper extends AnyVal
- Alphabetic
- By Inheritance
- UnpersistWrapper
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new UnpersistWrapper(sc: SparkContext)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val sc: SparkContext
-
def
toString(): String
- Definition Classes
- Any
-
def
unpersistRDDs(): Unit
Un-persists all cached RDDs.
Un-persists all cached RDDs.
- Note
this function is meant to be used after a driver task execution or after a test suite execution. That is when actions on cached RDDs are completed. Un-persisting an RDD before calling an action on it will simply vanish any previous persist call on it.
-
def
unpersistSomeRDDs(shouldUnpersist: (RDD[_]) ⇒ Boolean): Unit
Un-persists cached RDDs where the predicate is true.
Un-persists cached RDDs where the predicate is true.
- shouldUnpersist
function which returns true if the RDD should be unpersisted
- Note
this function is meant to be used after a driver task execution or after a test suite execution. That is when actions on cached RDDs are completed. Un-persisting an RDD before calling an action on it will simply vanish any previous persist call on it.