class PEROBS::BigHash::Entry

Internally this class uses BigTree to store the values by the hashed key. We are using a 64 bit hash space so collisions are fairly unlikely but not impossible. Therefor we have to store the originial key with the value to ensure that we got the right value. The key and value are stored in an Entry object.

In case we have a collision we need to store multiple values for the same hashed key. In that case we store the Entry objects for the same hashed key in a Collisions object instead of storing the Entry directly in the BigTree.

Public Class Methods

new(p, key, value) click to toggle source
Calls superclass method PEROBS::Object::new
# File lib/perobs/BigHash.rb, line 55
def initialize(p, key, value)
  super(p)
  self.key = key
  self.value = value
end