3.1.1 Compound Scope Index Directory
The following file is 000100006.0000000A.csd in the example full-text index catalog and stores a compound scope index directory in the index directory file format, as specified in section 2.5.
-
0000 00 00 00 00 00 00 00 00 - 02 00 00 00 02 00 00 00 0010 01 00 00 00 01 00 00 00 - 01 00 00 00 90 81 7f ff 0020 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0030 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0040 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0050 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0060 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0070 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0080 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0090 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff 01 00a0 00 00 92 81 7f ff ff ff - ff ff ff ff ff ff ff ff 00b0 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 00c0 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 00d0 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 00e0 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 00f0 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0100 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0110 ff ff ff ff ff ff ff ff - ff ff ff ff ff ff ff ff 0120 ff ff ff ff ff ff ff ff - 7f 00 00 00 00 00 00 00 0130 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 0140 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 … 0fd0 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 0fe0 00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00 0ff0 00 00 00 00 00 00 00 00 - 00 00 00 00 a2 00 1c 00
The following table shows the Index Directory file header, the first 16 bytes of the example at address 0000-0010. The Page Base, First Record In Level, Record Count, and Page Header Padding fields comprise the Index Directory Page Header.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Page Base |
|||||||||||||||||||||||||||||||
First Record In Level |
|||||||||||||||||||||||||||||||
Record Count |
Page Header Padding |
||||||||||||||||||||||||||||||
Count Of Level 1 Records |
|||||||||||||||||||||||||||||||
Count Of Level 1 Pages |
|||||||||||||||||||||||||||||||
Total Count Of Pages |
|||||||||||||||||||||||||||||||
Count Of Levels |
Padding |
Page Base (4 bytes): Set to 00 00 00 00.
First Record In Level (4 bytes): Set to 00 00 00 00.
Record Count (2 bytes): For two records, set to 02 00.
Page Header Padding (2 bytes): Set to 00 00.
Count Of Level 1 Records (4 bytes): Set to 02 00 00 00.
Count Of Level 1 Pages (4 bytes): For one page, set to 01 00 00 00.
Total Count Of Pages (4 bytes): For one page, set to 01 00 00 00.
Count Of Levels (1 byte): For one level, set to 01.
Padding (3 bytes): Set to 00 00 00.
The following table shows the Record Data Buffer (4068 bytes) at address 0010-0ff0.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Flags |
Key Size |
Key Bytes (129 bytes) |
|||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Property ID |
BitStream Offset |
BitStream Page |
Flags |
||||||||||||||||||||||||||||
Key Size |
Key Bytes (129 bytes) |
||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Offset |
Page (3798 bytes) |
||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
... |
|||||||||||||||||||||||||||||||
Record Offset Array |
Flags (1 byte): Set to 90.
Key Size (1 byte): For Key Size 129, set to 81.
Key Bytes (129 bytes): Begins with 7f and ends with ff at address 0010-0090.
A - Property ID (1 byte): Set to 01.
B - BitStream Offset (1 byte): Set to 00.
C - BitStream Page (1 byte): Set to 00.
Flags (1 byte): Set to 92.
Key Size (1 byte): For Key Size 129, set to 81.
Key Bytes (129 bytes): Begins and ends with 7f at address 00a0-0120.
Offset (1 byte): Set to 00.
Page (3798 bytes): Begins and ends with 00 at address 0120-0ff0.
Record Offset Array (4 bytes): Set to a2 00 1c 00.