lib/swift/identity_map.rb in swift-0.14.0 vs lib/swift/identity_map.rb in swift-1.0.0
- old
+ new
@@ -31,19 +31,19 @@
def identity_map
@identity_map ||= IdentityMap.new
end
end
- class Scheme
+ class Record
#--
# TODO: Redefined method :(
def self.load tuple
im = [self, *tuple.values_at(*header.keys)]
- unless scheme = Swift.db.identity_map.get(im)
- scheme = allocate
- scheme.tuple = tuple
- Swift.db.identity_map.set(im, scheme)
+ unless record = Swift.db.identity_map.get(im)
+ record = allocate
+ record.tuple = tuple
+ Swift.db.identity_map.set(im, record)
end
- scheme
+ record
end
- end # Scheme
+ end # Record
end # Swift