Class OneToOneDependency<T>

Object
org.apache.spark.Dependency<T>
org.apache.spark.NarrowDependency<T>
org.apache.spark.OneToOneDependency<T>
All Implemented Interfaces:
Serializable

public class OneToOneDependency<T> extends NarrowDependency<T>
:: DeveloperApi :: Represents a one-to-one dependency between partitions of the parent and child RDDs.
See Also:
  • Constructor Details

    • OneToOneDependency

      public OneToOneDependency(RDD<T> rdd)
  • Method Details

    • getParents

      public scala.collection.immutable.List<Object> getParents(int partitionId)
      Description copied from class: NarrowDependency
      Get the parent partitions for a child partition.
      Specified by:
      getParents in class NarrowDependency<T>
      Parameters:
      partitionId - a partition of the child RDD
      Returns:
      the partitions of the parent RDD that the child partition depends upon