org.apache.spark
Class OneToOneDependency<T>

Object
  extended by org.apache.spark.Dependency<T>
      extended by org.apache.spark.NarrowDependency<T>
          extended by org.apache.spark.OneToOneDependency<T>
All Implemented Interfaces:
java.io.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:
Serialized Form

Constructor Summary
OneToOneDependency(RDD<T> rdd)
           
 
Method Summary
 scala.collection.immutable.List<Object> getParents(int partitionId)
          Get the parent partitions for a child partition.
 
Methods inherited from class org.apache.spark.NarrowDependency
rdd
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OneToOneDependency

public OneToOneDependency(RDD<T> rdd)
Method Detail

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