Class: Spark::Serializer::Cartesian
- Defined in:
- lib/spark/serializer/cartesian.rb
Instance Method Summary collapse
Methods inherited from Pair
#initialize, #load_from_io, #to_s
Methods inherited from Base
#==, #batched?, #check_each, #error, #inspect, #load_from_file, #load_from_io, #name, #to_s, #unbatch!
Constructor Details
This class inherits a constructor from Spark::Serializer::Pair
Instance Method Details
#aggregate(item1, item2) ⇒ Object
5 6 7 |
# File 'lib/spark/serializer/cartesian.rb', line 5 def aggregate(item1, item2) item1.product(item2) end |