public class ShuffledRDD<K,V,P extends scala.Product2<K,V>> extends RDD<P>
Constructor and Description |
---|
ShuffledRDD(RDD<P> prev,
Partitioner part,
scala.reflect.ClassTag<P> evidence$1) |
Modifier and Type | Method and Description |
---|---|
void |
clearDependencies()
Clears the dependencies of this RDD.
|
scala.collection.Iterator<P> |
compute(Partition split,
TaskContext context)
:: DeveloperApi ::
Implemented by subclasses to compute a given partition.
|
scala.collection.Seq<Dependency<?>> |
getDependencies()
Implemented by subclasses to return how this RDD depends on parent RDDs.
|
Partition[] |
getPartitions()
Implemented by subclasses to return the set of partitions in this RDD.
|
scala.Some<Partitioner> |
partitioner()
Optionally overridden by subclasses to specify how they are partitioned.
|
RDD<P> |
prev() |
ShuffledRDD<K,V,P> |
setSerializer(Serializer serializer) |
aggregate, cache, cartesian, checkpoint, checkpointData, coalesce, collect, collect, context, count, countApprox, countApproxDistinct, countByValue, countByValueApprox, creationSiteInfo, dependencies, distinct, distinct, filter, filterWith, first, flatMap, flatMapWith, fold, foreach, foreachPartition, foreachWith, getCheckpointFile, getStorageLevel, glom, groupBy, groupBy, groupBy, id, intersection, intersection, intersection, isCheckpointed, iterator, keyBy, map, mapPartitions, mapPartitionsWithContext, mapPartitionsWithIndex, mapPartitionsWithSplit, mapWith, max, min, name, partitions, persist, persist, pipe, pipe, pipe, preferredLocations, randomSplit, reduce, repartition, sample, saveAsObjectFile, saveAsTextFile, saveAsTextFile, setName, sparkContext, subtract, subtract, subtract, take, takeOrdered, takeSample, toArray, toDebugString, toJavaRDD, toLocalIterator, top, toString, union, unpersist, zip, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipWithIndex, zipWithUniqueId
initialized, initializeIfNecessary, initializeLogging, initLock, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logTrace, logTrace, logWarning, logWarning
public ShuffledRDD(RDD<P> prev, Partitioner part, scala.reflect.ClassTag<P> evidence$1)
public ShuffledRDD<K,V,P> setSerializer(Serializer serializer)
public scala.collection.Seq<Dependency<?>> getDependencies()
RDD
public scala.Some<Partitioner> partitioner()
RDD
partitioner
in class RDD<P extends scala.Product2<K,V>>
public Partition[] getPartitions()
RDD
public scala.collection.Iterator<P> compute(Partition split, TaskContext context)
RDD
public void clearDependencies()
RDD
UnionRDD
for an example.