class RDDBarrier[T] extends AnyRef
Wraps an RDD in a barrier stage, which forces Spark to launch tasks of this stage together. org.apache.spark.rdd.RDDBarrier instances are created by org.apache.spark.rdd.RDD#barrier.
- Annotations
- @Experimental() @Since( "2.4.0" )
- Source
- RDDBarrier.scala
- Alphabetic
- By Inheritance
- RDDBarrier
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
mapPartitions[S](f: (Iterator[T]) ⇒ Iterator[S], preservesPartitioning: Boolean = false)(implicit arg0: ClassTag[S]): RDD[S]
Returns a new RDD by applying a function to each partition of the wrapped RDD, where tasks are launched together in a barrier stage.
Returns a new RDD by applying a function to each partition of the wrapped RDD, where tasks are launched together in a barrier stage. The interface is the same as org.apache.spark.rdd.RDD#mapPartitions. Please see the API doc there.
- Annotations
- @Experimental() @Since( "2.4.0" )
- See also
-
def
mapPartitionsWithIndex[S](f: (Int, Iterator[T]) ⇒ Iterator[S], preservesPartitioning: Boolean = false)(implicit arg0: ClassTag[S]): RDD[S]
Returns a new RDD by applying a function to each partition of the wrapped RDD, while tracking the index of the original partition.
Returns a new RDD by applying a function to each partition of the wrapped RDD, while tracking the index of the original partition. And all tasks are launched together in a barrier stage. The interface is the same as org.apache.spark.rdd.RDD#mapPartitionsWithIndex. Please see the API doc there.
- Annotations
- @Experimental() @Since( "3.0.0" )
- See also