Class: Fairy::PGroupBy::PQMergeSortBuffer::StSt::Pair

Inherits:
Object
  • Object
show all
Defined in:
lib/fairy/node/p-group-by.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(kv, buf) ⇒ Pair

Returns a new instance of Pair.



721
722
723
724
# File 'lib/fairy/node/p-group-by.rb', line 721

def initialize(kv, buf)
  @key_values = kv
  @buf = buf
end

Instance Attribute Details

#bufObject

Returns the value of attribute buf.



727
728
729
# File 'lib/fairy/node/p-group-by.rb', line 727

def buf
  @buf
end

#key_valuesObject

Returns the value of attribute key_values.



726
727
728
# File 'lib/fairy/node/p-group-by.rb', line 726

def key_values
  @key_values
end

Instance Method Details

#keyObject



729
730
731
# File 'lib/fairy/node/p-group-by.rb', line 729

def key
  @key_values.first
end

#valuesObject



733
734
735
# File 'lib/fairy/node/p-group-by.rb', line 733

def values
  @key_values.last
end