public abstract class BaseRRDD<T,U> extends RDD<U> implements Logging
Constructor and Description |
---|
BaseRRDD(RDD<T> parent,
int numPartitions,
byte[] func,
String deserializer,
String serializer,
byte[] packageNames,
Broadcast<Object>[] broadcastVars,
scala.reflect.ClassTag<T> evidence$1,
scala.reflect.ClassTag<U> evidence$2) |
Modifier and Type | Method and Description |
---|---|
scala.collection.Iterator<U> |
compute(Partition partition,
TaskContext context)
:: DeveloperApi ::
Implemented by subclasses to compute a given partition.
|
Partition[] |
getPartitions()
Implemented by subclasses to return the set of partitions in this RDD.
|
aggregate, barrier, cache, cartesian, checkpoint, coalesce, collect, collect, context, count, countApprox, countApproxDistinct, countApproxDistinct, countByValue, countByValueApprox, dependencies, distinct, distinct, doubleRDDToDoubleRDDFunctions, filter, first, flatMap, fold, foreach, foreachPartition, getCheckpointFile, getNumPartitions, getStorageLevel, glom, groupBy, groupBy, groupBy, id, intersection, intersection, intersection, isCheckpointed, isEmpty, iterator, keyBy, localCheckpoint, map, mapPartitions, mapPartitionsWithIndex, max, min, name, numericRDDToDoubleRDDFunctions, partitioner, 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
initializeLogging, initializeLogIfNecessary, initializeLogIfNecessary, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
public scala.collection.Iterator<U> compute(Partition partition, TaskContext context)
RDD
public Partition[] getPartitions()
RDD
The partitions in this array must satisfy the following property:
rdd.partitions.zipWithIndex.forall { case (partition, index) => partition.index == index }