DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Applies a function to all elements of this RDD.
def f(x): print(x) sc.parallelize([1, 2, 3, 4, 5]).foreach(f)
Source by spark.apache.org #
PREVIOUS
NEXT
Tagged:
#Applies
#function
#elements
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit