Accessor functions

Unlike purpose functions, the Virtual-Index Interface (VII) supplies the full code for each accessor function. Accessor functions obtain and set specific information in descriptors.

For example, the access method can perform the following actions:
  • Call the mi_tab_name() accessor function to obtain the name of the index from the table descriptor.
  • Store state information, such as a file handle or LO handle, in shared memory and then call the mi_tab_setuserdata() to place the pointer to the handle in the table descriptor so that subsequent purpose functions can retrieve the handle.