When a scan on some LinearHashingFile object is opened, the key to be scanned is passed to the constructor for LinearHashingScan. A new object of LinearHashingScan is returned. The constructor for LinearHashingScan stores the LinearHashingFile object and the key. It then initializes its private member first_scan to 1.