public class ShuffledRDD<K,V,C> extends RDD<scala.Tuple2<K,C>>
Constructor and Description |
---|
ShuffledRDD(RDD<? extends scala.Product2<K,V>> prev,
Partitioner part,
scala.reflect.ClassTag<K> evidence$1,
scala.reflect.ClassTag<V> evidence$2,
scala.reflect.ClassTag<C> evidence$3) |
Modifier and Type | Method and Description |
---|---|
void |
clearDependencies()
Clears the dependencies of this RDD.
|
scala.collection.Iterator<scala.Tuple2<K,C>> |
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.
|
protected scala.collection.Seq<java.lang.String> |
getPreferredLocations(Partition partition)
Optionally overridden by subclasses to specify placement preferences.
|
scala.Some<Partitioner> |
partitioner()
Optionally overridden by subclasses to specify how they are partitioned.
|
RDD<? extends scala.Product2<K,V>> |
prev() |
ShuffledRDD<K,V,C> |
setAggregator(Aggregator<K,V,C> aggregator)
Set aggregator for RDD's shuffle.
|
ShuffledRDD<K,V,C> |
setKeyOrdering(scala.math.Ordering<K> keyOrdering)
Set key ordering for RDD's shuffle.
|
ShuffledRDD<K,V,C> |
setMapSideCombine(boolean mapSideCombine)
Set mapSideCombine flag for RDD's shuffle.
|
ShuffledRDD<K,V,C> |
setSerializer(Serializer serializer)
Set a serializer for this RDD's shuffle, or null to use the default (spark.serializer)
|
aggregate, cache, cartesian, checkpoint, coalesce, collect, collect, context, count, countApprox, countApproxDistinct, countApproxDistinct, countByValue, countByValueApprox, dependencies, distinct, distinct, doubleRDDToDoubleRDDFunctions, filter, first, firstParent, flatMap, fold, foreach, foreachPartition, getCheckpointFile, getNumPartitions, getStorageLevel, glom, groupBy, groupBy, groupBy, id, initializeLogIfNecessary, intersection, intersection, intersection, isCheckpointed, isEmpty, isTraceEnabled, iterator, keyBy, localCheckpoint, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning, map, mapPartitions, mapPartitionsWithIndex, max, min, name, numericRDDToDoubleRDDFunctions, parent, partitions, persist, persist, pipe, pipe, pipe, preferredLocations, randomSplit, rddToAsyncRDDActions, rddToOrderedRDDFunctions, rddToPairRDDFunctions, rddToSequenceFileRDDFunctions, reduce, repartition, sample, saveAsObjectFile, saveAsTextFile, saveAsTextFile, setName, sortBy, sparkContext, subtract, subtract, subtract, take, takeOrdered, takeSample, toDebugString, toJavaRDD, toLocalIterator, top, toString, treeAggregate, treeReduce, union, unpersist, zip, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipWithIndex, zipWithUniqueId
public ShuffledRDD<K,V,C> setSerializer(Serializer serializer)
public ShuffledRDD<K,V,C> setKeyOrdering(scala.math.Ordering<K> keyOrdering)
public ShuffledRDD<K,V,C> setAggregator(Aggregator<K,V,C> aggregator)
public ShuffledRDD<K,V,C> setMapSideCombine(boolean mapSideCombine)
public scala.collection.Seq<Dependency<?>> getDependencies()
RDD
getDependencies
in class RDD<scala.Tuple2<K,C>>
public scala.Some<Partitioner> partitioner()
RDD
partitioner
in class RDD<scala.Tuple2<K,C>>
public Partition[] getPartitions()
RDD
The partitions in this array must satisfy the following property:
rdd.partitions.zipWithIndex.forall { case (partition, index) => partition.index == index }
getPartitions
in class RDD<scala.Tuple2<K,C>>
protected scala.collection.Seq<java.lang.String> getPreferredLocations(Partition partition)
RDD
getPreferredLocations
in class RDD<scala.Tuple2<K,C>>
partition
- (undocumented)public scala.collection.Iterator<scala.Tuple2<K,C>> compute(Partition split, TaskContext context)
RDD
public void clearDependencies()
RDD
UnionRDD
for an example.clearDependencies
in class RDD<scala.Tuple2<K,C>>