Packages

c

org.apache.spark.rdd

RDDBarrier

class RDDBarrier[T] extends AnyRef

Experimental

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" )
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RDDBarrier
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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

    org.apache.spark.BarrierTaskContext