public class CoGroupedRDD<K> extends RDD<scala.Tuple2<K,scala.collection.Seq<scala.collection.Seq<Object>>>>
Note: This is an internal API. We recommend users use RDD.coGroup(...) instead of instantiating this directly.
Constructor and Description |
---|
CoGroupedRDD(scala.collection.Seq<RDD<? extends scala.Product2<K,?>>> rdds,
Partitioner part) |
Modifier and Type | Method and Description |
---|---|
void |
clearDependencies()
Clears the dependencies of this RDD.
|
scala.collection.Iterator<scala.Tuple2<K,scala.collection.Seq<scala.collection.mutable.ArrayBuffer<Object>>>> |
compute(Partition s,
TaskContext context) |
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.
|
scala.collection.Seq<RDD<? extends scala.Product2<K,?>>> |
rdds() |
CoGroupedRDD<K> |
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 CoGroupedRDD(scala.collection.Seq<RDD<? extends scala.Product2<K,?>>> rdds, Partitioner part)
public CoGroupedRDD<K> setSerializer(Serializer serializer)
public scala.collection.Seq<Dependency<?>> getDependencies()
RDD
public Partition[] getPartitions()
RDD
public scala.Some<Partitioner> partitioner()
RDD
partitioner
in class RDD<scala.Tuple2<K,scala.collection.Seq<scala.collection.Seq<Object>>>>
public scala.collection.Iterator<scala.Tuple2<K,scala.collection.Seq<scala.collection.mutable.ArrayBuffer<Object>>>> compute(Partition s, TaskContext context)
public void clearDependencies()
RDD
UnionRDD
for an example.