Class: Spark::Command::MapPartitionsWithIndex

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

Overview


MapPartitionsWithIndex

Direct Known Subclasses

MapPartitions

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