diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/programming-guide.md | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/programming-guide.md b/docs/programming-guide.md index 7d77e640d0..b667aa0d17 100644 --- a/docs/programming-guide.md +++ b/docs/programming-guide.md @@ -379,10 +379,12 @@ Some notes on reading files with Spark: * The `textFile` method also takes an optional second argument for controlling the number of slices of the file. By default, Spark creates one slice for each block of the file (blocks being 64MB by default in HDFS), but you can also ask for a higher number of slices by passing a larger value. Note that you cannot have fewer slices than blocks. Apart reading files as a collection of lines, -`SparkContext.wholeTextFiles` lets you read a directory containing multiple small text files, and returns each of them as (filename, content) pairs. This is in contrast with `textFile`, which would return one record per line in each file. -</div> +* `SparkContext.wholeTextFiles` lets you read a directory containing multiple small text files, and returns each of them as (filename, content) pairs. This is in contrast with `textFile`, which would return one record per line in each file. +* `RDD.saveAsPickleFile` and `SparkContext.pickleFile` support saving an RDD in a simple format consisting of pickled Python objects. Batching is used on pickle serialization, with default batch size 10. + +</div> </div> |