Class: Fairy::PGroupBy::PQMergeSortBuffer::StSt::Pair
- Inherits:
-
Object
- Object
- Fairy::PGroupBy::PQMergeSortBuffer::StSt::Pair
- Defined in:
- lib/fairy/node/p-group-by.rb
Instance Attribute Summary collapse
-
#buf ⇒ Object
Returns the value of attribute buf.
-
#key_values ⇒ Object
Returns the value of attribute key_values.
Instance Method Summary collapse
-
#initialize(kv, buf) ⇒ Pair
constructor
A new instance of Pair.
- #key ⇒ Object
- #values ⇒ Object
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
#buf ⇒ Object
Returns the value of attribute buf.
733 734 735 |
# File 'lib/fairy/node/p-group-by.rb', line 733 def buf @buf end |
#key_values ⇒ Object
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
#key ⇒ Object
735 736 737 |
# File 'lib/fairy/node/p-group-by.rb', line 735 def key @key_values.first end |
#values ⇒ Object
739 740 741 |
# File 'lib/fairy/node/p-group-by.rb', line 739 def values @key_values.last end |