CUBRID Engine
latest
|
Go to the source code of this file.
Classes | |
struct | btree_stats |
struct | attr_stats |
struct | class_stats |
Macros | |
#define | STATS_WITH_FULLSCAN true |
#define | STATS_WITH_SAMPLING false |
#define | STATS_SAMPLING_THRESHOLD 50 /* sampling trial count */ |
#define | STATS_SAMPLING_LEAFS_MAX 8 /* sampling leaf pages */ |
#define | BTREE_STATS_PKEYS_NUM 8 |
#define | BTREE_STATS_RESERVED_NUM 4 |
#define | STATS_MIN_MAX_SIZE sizeof(DB_DATA) |
#define | stats_free_statistics_and_init(stats) |
Typedefs | |
typedef struct btree_stats | BTREE_STATS |
typedef struct attr_stats | ATTR_STATS |
typedef struct class_stats | CLASS_STATS |
Functions | |
int | stats_get_statistics (OID *classoid, unsigned int timestamp, CLASS_STATS **stats_p) |
void | stats_free_statistics (CLASS_STATS *stats) |
void | stats_dump (const char *classname, FILE *fp) |
#define BTREE_STATS_PKEYS_NUM 8 |
Definition at line 41 of file statistics.h.
Referenced by btree_get_stats(), btree_get_unique_statistics(), catalog_add_representation(), catalog_copy_btree_statistic(), catalog_dump_disk_attribute(), catalog_fetch_btree_statistics(), catalog_get_btree_statistics(), catalog_get_cardinality(), catalog_put_btree_statistics(), orc_diskrep_from_record(), qo_get_attr_info(), qo_get_attr_info_func_index(), qo_get_index_info(), qo_index_cardinality(), qo_iscan_cost(), qo_plan_cmp(), qo_plan_iscan_terms_cmp(), stats_client_unpack_statistics(), stats_dump(), stats_get_time_stamp(), stats_update_partitioned_statistics(), xstats_get_statistics_from_server(), and xstats_update_statistics().
#define BTREE_STATS_RESERVED_NUM 4 |
Definition at line 42 of file statistics.h.
Referenced by catalog_copy_btree_statistic(), catalog_get_btree_statistics(), catalog_put_btree_statistics(), and orc_diskrep_from_record().
#define stats_free_statistics_and_init | ( | stats | ) |
Definition at line 47 of file statistics.h.
Referenced by classobj_free_class().
#define STATS_MIN_MAX_SIZE sizeof(DB_DATA) |
Definition at line 44 of file statistics.h.
#define STATS_SAMPLING_LEAFS_MAX 8 /* sampling leaf pages */ |
Definition at line 38 of file statistics.h.
Referenced by btree_get_stats_with_AR_sampling().
#define STATS_SAMPLING_THRESHOLD 50 /* sampling trial count */ |
Definition at line 37 of file statistics.h.
Referenced by btree_get_stats(), and btree_get_stats_with_AR_sampling().
#define STATS_WITH_FULLSCAN true |
Definition at line 34 of file statistics.h.
Referenced by createdb(), do_update_stats(), loaddb_internal(), sqst_update_all_statistics(), sqst_update_statistics(), stats_update_all_statistics(), and stats_update_statistics().
#define STATS_WITH_SAMPLING false |
Definition at line 35 of file statistics.h.
Referenced by btree_get_statistics(), do_reorganize_partition_post(), do_update_stats(), ldr_update_statistics(), optimizedb(), sbtree_get_statistics(), sm_add_constraint(), sm_drop_index(), sm_exist_index(), sqst_update_all_statistics(), sqst_update_statistics(), stats_update_all_statistics(), stats_update_statistics(), update_class(), cubload::session::update_class_statistics(), and update_subclasses().
typedef struct attr_stats ATTR_STATS |
Definition at line 75 of file statistics.h.
typedef struct btree_stats BTREE_STATS |
Definition at line 56 of file statistics.h.
typedef struct class_stats CLASS_STATS |
Definition at line 85 of file statistics.h.
void stats_dump | ( | const char * | classname, |
FILE * | fp | ||
) |
Definition at line 294 of file statistics_cl.c.
References assert, class_stats::attr_stats, attr_stats::bt_stats, btree_stats::btid, BTREE_STATS_PKEYS_NUM, DB_TYPE_BIGINT, DB_TYPE_BIT, DB_TYPE_BLOB, DB_TYPE_CHAR, DB_TYPE_CLOB, DB_TYPE_DATE, DB_TYPE_DATETIME, DB_TYPE_DATETIMELTZ, DB_TYPE_DATETIMETZ, DB_TYPE_DB_VALUE, DB_TYPE_DOUBLE, DB_TYPE_ENUMERATION, DB_TYPE_FLOAT, DB_TYPE_INTEGER, DB_TYPE_MONETARY, DB_TYPE_MULTISET, DB_TYPE_NCHAR, DB_TYPE_NULL, DB_TYPE_NUMERIC, DB_TYPE_OBJECT, DB_TYPE_POINTER, DB_TYPE_SEQUENCE, DB_TYPE_SET, DB_TYPE_SHORT, DB_TYPE_STRING, DB_TYPE_SUB, DB_TYPE_TIME, DB_TYPE_TIMESTAMP, DB_TYPE_TIMESTAMPLTZ, DB_TYPE_TIMESTAMPTZ, DB_TYPE_VARBIT, DB_TYPE_VARIABLE, DB_TYPE_VARNCHAR, vfid::fileid, class_stats::heap_num_objects, class_stats::heap_num_pages, btree_stats::height, i, attr_stats::id, btree_stats::keys, btree_stats::leafs, class_stats::n_attrs, attr_stats::n_btstats, NULL, btree_stats::pages, btree_stats::pkeys, btree_stats::pkeys_size, sm_find_class(), sm_get_att_name(), sm_get_class_with_statistics(), sm_class::stats, class_stats::time_stamp, attr_stats::type, btid::vfid, and vfid::volid.
Referenced by help_print_info().
void stats_free_statistics | ( | CLASS_STATS * | stats | ) |
Definition at line 253 of file statistics_cl.c.
References class_stats::attr_stats, attr_stats::bt_stats, db_ws_free(), i, attr_stats::n_btstats, NULL, and btree_stats::pkeys.
Referenced by classobj_find_cons_index2_col_type_list(), install_new_representation(), sm_get_class_with_statistics(), sm_get_statistics_force(), sm_update_all_statistics(), sm_update_statistics(), and stats_client_unpack_statistics().
int stats_get_statistics | ( | OID * | classoid, |
unsigned int | timestamp, | ||
CLASS_STATS ** | stats_p | ||
) |
Definition at line 54 of file statistics_cl.c.
References assert, error(), free_and_init, NO_ERROR, NULL, stats_client_unpack_statistics(), and stats_get_statistics_from_server().
Referenced by classobj_find_cons_index2_col_type_list(), sm_get_class_with_statistics(), sm_get_statistics_force(), sm_update_all_statistics(), and sm_update_statistics().