The key information record describes the physical characteristics of all the keys used in the file, including the length of each key; where the key is defined within the data record; whether duplicates are permitted, and so on. Within the key information record structure is a sub-structure, the key block. A key block is created for each key defined. The first key block always describes the primary key. Subsequent key blocks define the alternate keys in the order specified when the file was created. If the key information record is not big enough to hold key blocks for all the keys defined, equal sized continuation records are created, each pointing to the next, until all the keys have been defined.
The key information record contains:
Size | Description of the field |
---|---|
2 | Record header. Present only if index nodes have record header. See the topic the topic Types of Indexed File for details. |
2 |
|
file-pointer-size | Address of continuation record. Zero if no further continuation records. |
n | Key block for primary key |