When the R-tree access method is initially created, information about the access method is stored in the sysams system catalog. The database server uses this information to dynamically load support for the access method and call the correct user-defined function for a given task. These tasks include creating an R-tree index, scanning the index, inserting into the index, and updating the index.
Some of the columns of the sysams table include:
The following query returns values for the am_name, am_owner, am_id, am_sptype, and am_defopclass columns of the sysams system catalog for the rtree entry:
SELECT am_name, am_owner, am_id, am_type, am_sptype, am_defopclass FROM sysams WHERE am_name = 'rtree';
am_name rtree am_owner informix am_id 2 am_type S am_sptype D am_defopclass 2
The query shows that the internal name of the R-tree access method is rtree, which is the name you specify in the USING clause of the CREATE INDEX statement when you create an R-tree index. The am_sptype column shows that R-tree indexes are stored in dbspaces, often in the same dbspace the indexed table is stored. The identifier for the default operator class, shown by the am_defopclass column, is 2. A query of the sysopclasses system catalog would show that rtree_ops has a unique identifier of 2 and is thus the default operator class for the R-tree access method.
For a complete description of the columns of the sysams system table, refer to the IBM Informix: Guide to SQL Reference.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]