comp.lang.ada
 help / color / mirror / Atom feed
From: mfb@mbunix.mitre.org (Michael F Brenner)
Subject: Re: Looking for Indexed Sequential File Package
Date: 1997/07/17
Date: 1997-07-17T00:00:00+00:00	[thread overview]
Message-ID: <5qlskj$3ka@top.mitre.org> (raw)
In-Reply-To: 33CCA95E.167EB0E7@avions.aerospatiale.fr


Indexed sequential files are not always called that anymore. An indexed
sequential file is a data structure with two components: an indexing
container which keeps a list of keys in sorted order, and a random
access container (falsely called sequential in the title Indexed Sequential).
For the indexing containter, a finite state machine lookup or hash function
may be used, or else you may use a partially balanced or fully balanced
tree, etc. For the random file, you may use an ordinary Ada Stream (unless
you are using the DOS version 3.07), or a large fixed array in virtual
memory, or a direct_IO file. An indexed_sequential_control package would
then simply combine these two containers and provide an interface 
like text_IO, except that the set_position would work, and there would
be insert_key, delete_key, get_position_from_key, get_key_from_position,
get_key_from_record, set_key_in_record, and of course, something like
set_index and get_index would have to work on the file.




  parent reply	other threads:[~1997-07-17  0:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-16  0:00 Looking for Indexed Sequential File Package Paul CHARDON
1997-07-16  0:00 ` Larry Kilgallen
1997-07-16  0:00   ` Robert Dewar
1997-07-16  0:00 ` Matthew Heaney
1997-07-17  0:00 ` Michael F Brenner [this message]
1997-07-18  0:00   ` Larry Kilgallen
1997-07-20  0:00     ` Robert Dewar
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox