def store_vector(self, hash_name, bucket_key, v, data):
        """
        Stores vector and JSON-serializable data in bucket with specified key.
        """

        if not hash_name in self.buckets:
            self.buckets[hash_name] = {}

        if not bucket_key in self.buckets[hash_name]:
            self.buckets[hash_name][bucket_key] = []
        self.buckets[hash_name][bucket_key].append((v, data))
def store_vector ( self , hash_name , bucket_key , v , data ) : if not hash_name in self . buckets : self . buckets [ hash_name ] = { } if not bucket_key in self . buckets [ hash_name ] : self . buckets [ hash_name ] [ bucket_key ] = [ ] self . buckets [ hash_name ] [ bucket_key ] . append ( ( v , data ) )
Stores vector and JSON-serializable data in bucket with specified key.