NDX Indices
Chapter Updated 4/12/04
Type | Size | Field Name | Description |
---|---|---|---|
xbLong | 4 | StartNode | This identifies the root node of the index. The Header node is node 0. |
xbLong | 4 | Total Nodes | This is the count of the total nodes in the index. The count includes the header node. |
xbLong | 4 | NoOfKeys | Total number of keys in the index +1 |
xbUShort | 2 | KeyLen | The index key length |
xbUShort | 2 | KeysPerNode | The maximum number of keys per node |
xbUShort | 2 | KeyType | Type of key 00 - Character 01 - Numeric |
xbLong | 4 | Keysize | Key record size + 8 |
char | 1 | Unknown | Reserved |
char | 1 | Unique | Unique indicator 00 - Not Unique - XB_NON_UNIQUE 01 - Unique - XB_UNIQUE |
char | 488 | KeyExpression | Key expression string |
512 | Total bytes in node |
Type | Size | Field Name | Description |
---|---|---|---|
xbLong | 4 | NoOfKeysThisNode | The number of key values in this node. |
char | 508 | KeyRec | A repeating structure of pointers and keys. See the next table for the KeyRec structure. |
Type | Size | Field Name | Description |
---|---|---|---|
xbLong | 4 | LeftNodeNo | The node number of the lower node for this key. 0 in Leaf Nodes. |
xbLong | 4 | DbfRecNo | The DBF record number for this key. 0 in Interior Nodes. |
char | KeyLen | KeyValue | The key value. |