Class: Spark::Command::MapPartitionsWithIndex
- Inherits:
-
Object
- Object
- Spark::Command::MapPartitionsWithIndex
- Defined in:
- lib/spark/command/basic.rb
Overview
MapPartitionsWithIndex
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#run(iterator, index) ⇒ Object
46 47 48 49 |
# File 'lib/spark/command/basic.rb', line 46 def run(iterator, index) iterator = @partition_function.call(iterator, index) iterator end |