We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
On ruby you cannot do something like this
proc = Proc.new do |x| x * 2 end Marshal.dump(proc)
So, Proc and Method are serialized as string using this library
rdd.map('lambda{|x| x * 2}')
The same as example above. However not all Proc can be transfered.
rdd.map(lambda{|x| x * 2}) # This won't work rdd.map(lambda{|x| x * 2}).map(lambda{|x| x * 2})
rdd.map(:to_s)
def multiple(x) x * 2 end rdd.map(method(:multiple))