Class: Spark::Command::MapPartitions

Inherits:
MapPartitionsWithIndex show all
Defined in:
lib/spark/command/basic.rb

Overview


MapPartitions

Instance Method Summary collapse

Instance Method Details

#run(iterator) ⇒ Object



59
60
61
62
63
# File 'lib/spark/command/basic.rb', line 59

def run(iterator, *)
  # Do not use `super` because `@partition_function` can be method with 1 argument
  iterator = @partition_function.call(iterator)
  iterator
end