CUBRID Engine  latest
statistics.h File Reference
#include <stdio.h>
#include "dbtype_def.h"
#include "storage_common.h"
#include "object_domain.h"
Include dependency graph for statistics.h:
This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

#define BTREE_STATS_RESERVED_NUM   4
#define stats_free_statistics_and_init (   stats)
Value:
do \
{ \
(stats) = NULL; \
} \
while (0)
void stats_free_statistics(CLASS_STATS *stats)
#define NULL
Definition: freelistheap.h:34
while(1)
Definition: cnvlex.c:816

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().

Typedef Documentation

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.

Function Documentation

int stats_get_statistics ( OID classoid,
unsigned int  timestamp,
CLASS_STATS **  stats_p 
)