public abstract class BaseRRDD<T,U> extends RDD<U> implements Logging
Constructor and Description |
---|
BaseRRDD(RDD<T> parent,
int numPartitions,
byte[] func,
java.lang.String deserializer,
java.lang.String serializer,
byte[] packageNames,
Broadcast<java.lang.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.
|
protected java.io.DataInputStream |
dataStream() |
Partition[] |
getPartitions()
Implemented by subclasses to return the set of partitions in this RDD.
|
protected U |
read() |
protected abstract U |
readData(int length) |
aggregate, cache, cartesian, checkpoint, checkpointData, clearDependencies, coalesce, collect, collect, context, count, countApprox, countApproxDistinct, countApproxDistinct, countByValue, countByValueApprox, creationSite, dependencies, distinct, distinct, doubleRDDToDoubleRDDFunctions, filter, filterWith, first, firstParent, flatMap, flatMapWith, fold, foreach, foreachPartition, foreachWith, getCheckpointFile, getDependencies, getPreferredLocations, getStorageLevel, glom, groupBy, groupBy, groupBy, id, intersection, intersection, intersection, isCheckpointed, isEmpty, iterator, keyBy, localCheckpoint, map, mapPartitions, mapPartitionsWithContext, mapPartitionsWithIndex, mapPartitionsWithSplit, mapWith, max, min, name, numericRDDToDoubleRDDFunctions, parent, partitioner, partitions, persist, persist, pipe, pipe, pipe, preferredLocations, randomSplit, rddToAsyncRDDActions, rddToOrderedRDDFunctions, rddToPairRDDFunctions, rddToSequenceFileRDDFunctions, reduce, repartition, sample, saveAsObjectFile, saveAsTextFile, saveAsTextFile, scope, setName, sortBy, sparkContext, subtract, subtract, subtract, take, takeOrdered, takeSample, toArray, toDebugString, toJavaRDD, toLocalIterator, top, toString, treeAggregate, treeReduce, union, unpersist, zip, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipPartitions, zipWithIndex, zipWithUniqueId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
initializeIfNecessary, initializeLogging, isTraceEnabled, log_, log, logDebug, logDebug, logError, logError, logInfo, logInfo, logName, logTrace, logTrace, logWarning, logWarning
protected java.io.DataInputStream dataStream()
public Partition[] getPartitions()
RDD
getPartitions
in class RDD<U>
public scala.collection.Iterator<U> compute(Partition partition, TaskContext context)
RDD
protected abstract U readData(int length)
protected U read()