create an accumulatable shared variable, with a +=
method
create an accumulatable shared variable, with a +=
method
accumulator type
type that can be added to the accumulator
create an accumulator from a "mutable collection" type.
create an accumulator from a "mutable collection" type.
Growable and TraversableOnce are the standard apis that guarantee += and ++=, implemented by standard mutable collections. So you can use this with mutable Map, Set, etc.
Smarter version of hadoopFile() that uses class manifests to figure out the classes of keys, values and the InputFormat so that users don't need to pass them directly.
Get an RDD for a Hadoop file with an arbitrary InputFormat
Get an RDD for a Hadoop-readable dataset from a Hadooop JobConf giving its InputFormat and any other necessary info (e.
Get an RDD for a Hadoop-readable dataset from a Hadooop JobConf giving its InputFormat and any other necessary info (e.g. file name for a filesystem-based dataset, table name for HyperTable, etc).
Get an RDD for a given Hadoop file with an arbitrary new API InputFormat and extra configuration options to pass to the input format.
Get an RDD for a Hadoop file with an arbitrary new API InputFormat.
Get an RDD for a given Hadoop file with an arbitrary new API InputFormat and extra configuration options to pass to the input format.
Load an RDD saved as a SequenceFile containing serialized objects, with NullWritable keys and BytesWritable values that contain a serialized partition.
Load an RDD saved as a SequenceFile containing serialized objects, with NullWritable keys and BytesWritable values that contain a serialized partition. This is still an experimental storage format and may not be supported exactly as is in future Spark releases. It will also be pretty slow if you use the default serializer (Java serialization), though the nice thing about it is that there's very little effort required to save arbitrary objects.
Run a job on all partitions in an RDD and return the results in an array.
Run a function on a given set of partitions in an RDD and return the results.
Run a function on a given set of partitions in an RDD and return the results. This is the main entry point to the scheduler, by which all actions get launched. The allowLocal flag specifies whether the scheduler can run the computation on the master rather than shipping it out to the cluster, for short actions like first().
Version of sequenceFile() for types implicitly convertible to Writables through a WritableConverter.
Version of sequenceFile() for types implicitly convertible to Writables through a WritableConverter.
WritableConverters are provided in a somewhat strange way (by an implicit function) to support both subclasses of Writable and types for which we define a converter (e.g. Int to IntWritable). The most natural thing would've been to have implicit objects for the converters, but then we couldn't have an object for every subclass of Writable (you can't have a parameterized singleton object). We use functions instead to create a new converter for the appropriate type. In addition, we pass the converter a ClassManifest of its type to allow it to figure out the Writable class to use in the subclass case.
Get an RDD for a Hadoop SequenceFile with given key and value types
Build the union of a list of RDDs.