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.
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
#buf ⇒ Object
Returns the value of attribute buf.
727 728 729 |
# File 'lib/fairy/node/p-group-by.rb', line 727 def buf @buf end |
#key_values ⇒ Object
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
#key ⇒ Object
729 730 731 |
# File 'lib/fairy/node/p-group-by.rb', line 729 def key @key_values.first end |
#values ⇒ Object
733 734 735 |
# File 'lib/fairy/node/p-group-by.rb', line 733 def values @key_values.last end |