Following is the definition of the
mco_index_stat_tstructure which provides memory usage statistics for an index:typedef struct mco_index_stat_t_ { uint2 class_code; /* class code to which the index belongs */ uint4 type; /* type, MCO_IDXST_ flags */ char * plabel; /* the index label */ mco_counter_t keys_num; /* number of keys in the index */ mco_counter_t pages_num; /* number of pages used by the index */ mco_counter_t avg_cmp; /* average number of comparisons needed to locate an element */ mco_counter_t max_cmp; /* maximum number of comparisons needed to locate an element */ union { mco_index_stat_tree_t btree; /* specific btree stats */ mco_index_stat_kdtree_t kdtree; /* specific kdtree stats */ mco_index_stat_hash_t hash; /* specific hash stats */ mco_index_stat_tree_t ptree; /* specific patricia trie stats */ mco_index_stat_rtree_t rtree; /* specific r-tree stats */ mco_index_stat_meta_t meta; /* specific meta-index stats */ } spec; } mco_index_stat_t, * mco_index_stat_h;class_codeThe class code to which the index belongstypeA bitmap ofMCO_IDXST_flags as defined belowplabelThe index labelkeys_numThe number of keys in the indexpages_numThe number of pages used by the indexavg_cmpThe average number of comparisons needed to locate an elementmax_cmpThe maximum number of comparisons needed to locate an elementspecA union containing specific statistics depending on the type of index (see table below).The element type is defined by a combination of the following bit values:
Type
MCO_IDXST_TYPE_MEMIn-memory indexMCO_IDXST_TYPE_DISKPersistent indexNature
MCO_IDXST_NATURE_BTREEBinary treeMCO_IDXST_NATURE_PTREEPatricia trieMCO_IDXST_NATURE_KDTREEKD-treeMCO_IDXST_NATURE_HASHHash indexMCO_IDXST_NATURE_METAMeta-indexMCO_IDXST_NATURE_RTREER-treeFeature
MCO_IDXST_FEATURE_UNIQUEUniqueMCO_IDXST_FEATURE_UDFUser-definedMCO_IDXST_FEATURE_THICKThick indexMCO_IDXST_FEATURE_OPTIMIZEDUses optimized compare & hash functions.Function
MCO_IDXST_FUNCTION_REGULARRegular class indexMCO_IDXST_FUNCTION_OIDObject-ID meta-indexMCO_IDXST_FUNCTION_AUTOOIDAuto object-ID meta-indexAuto ID meta-indexMCO_IDXST_FUNCTION_LISTList meta-indexThe union element spec is one of the following depending on the type of index: