Package org.apache.spark
Class NarrowDependency<T>
Object
org.apache.spark.Dependency<T>
org.apache.spark.NarrowDependency<T>
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- OneToOneDependency,- RangeDependency
:: DeveloperApi ::
 Base class for dependencies where each partition of the child RDD depends on a small number
 of partitions of the parent RDD. Narrow dependencies allow for pipelined execution.
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract scala.collection.immutable.Seq<Object>getParents(int partitionId) Get the parent partitions for a child partition.rdd()
- 
Constructor Details- 
NarrowDependency
 
- 
- 
Method Details- 
getParentsGet the parent partitions for a child partition.- Parameters:
- partitionId- a partition of the child RDD
- Returns:
- the partitions of the parent RDD that the child partition depends upon
 
- 
rdd- Specified by:
- rddin class- Dependency<T>
 
 
-