DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Return an RDD created by coalescing all elements within each partition into a list.
rdd = sc.parallelize([1, 2, 3, 4], 2) sorted(rdd.glom().collect()) # [[1, 2], [3, 4]]
Source by spark.apache.org #
PREVIOUS
NEXT
Tagged:
#Return
#RDD
#created
#coalescing
#elements
#partition
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit