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.



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

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

Instance Attribute Details

#bufObject

Returns the value of attribute buf.



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

def buf
  @buf
end

#key_valuesObject

Returns the value of attribute key_values.



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

def key_values
  @key_values
end

Instance Method Details

#keyObject



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

def key
  @key_values.first
end

#valuesObject



739
740
741
# File 'lib/fairy/node/p-group-by.rb', line 739

def values
  @key_values.last
end