class MatchReduce::Processor::Result
This is the main resulting value object returned, one per aggregator.
Attributes
name[R]
records[R]
value[R]
Public Class Methods
new(name, records, value)
click to toggle source
# File lib/match_reduce/processor/result.rb, line 16 def initialize(name, records, value) @name = name @records = records @value = value freeze end
Public Instance Methods
==(other)
click to toggle source
# File lib/match_reduce/processor/result.rb, line 28 def ==(other) other.instance_of?(self.class) && name == other.name && records == other.records && value == other.value end
Also aliased as: eql?
hash()
click to toggle source
# File lib/match_reduce/processor/result.rb, line 24 def hash [name, records, value].hash end