Message 60

[Scan] What does it do?

X-Added: With Flames (bblib $Revision: 1.4 $)
Return-path: <jypan+@cs.cmu.edu>
X-Andrew-Authenticated-as: 0;andrew.cmu.edu;Network-Mail
Received: from po0.andrew.cmu.edu via trymail for bb+academic.cs.15-721@andrew.cmu.edu
          ID </afs/andrew.cmu.edu/usr0/bb/Mailbox/Yvk=okW00UdYRWr05L>;
          Sun,  7 Oct 2001 16:38:08 -0400 (EDT)
Received: from mx2.andrew.cmu.edu (MX2.ANDREW.CMU.EDU [128.2.10.112])
        by po0.andrew.cmu.edu (8.9.3/8.9.3) with ESMTP id QAA25304
        for <bb+academic.cs.15-721@ams.andrew.cmu.edu>; Sun, 7 Oct 2001 16:38:08 -0400 (EDT)
Received: from postoffice.srv.cs.cmu.edu (POSTOFFICE.SRV.CS.CMU.EDU [128.2.181.62])
        by mx2.andrew.cmu.edu (8.12.0.Beta16/8.12.0.Beta16) with SMTP id f97Kc5tx024944
        for <post+academic.cs.15-721@andrew.cmu.edu>; Sun, 7 Oct 2001 16:38:05 -0400
Received: from GS270.SP.CS.CMU.EDU by postoffice.srv.cs.cmu.edu id aa11973;
          7 Oct 2001 16:37 EDT
Sender: jypan@postoffice.srv.cs.cmu.edu
Message-ID: <3BC0BD10.483F2DAC@cs.cmu.edu>
Date: Sun, 07 Oct 2001 16:37:36 -0400
From: Jia Yu <jypan+@cs.cmu.edu>
Organization: School of Computer Science, Carnegie Mellon University
X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.17 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: post+academic.cs.15-721@andrew.cmu.edu, jypan@cs.cmu.edu
Subject: [Scan] What does it do?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hello,
   What does the Scan object do?
   (1) Does it points to the place corresponds to 
(first directory page, first directory record, first data page, first
data record) 
when it starts?
   (2) Does our myScan object need to maintain the key variables
ourselves?

   (3) getNext() return the informatioin of the NEXT record.
    Does this mean that we first advance the 'cursor' and then 
    return the information of the next record?
    If true, then how do we return the information of the first data
record, since we start at it and only can getNext().

Thank you.