Skip to content

File statistics.h

FileList > cubrid > src > storage > statistics.h

Go to the source code of this file

  • #include <stdio.h>
  • #include "dbtype_def.h"
  • #include "storage_common.h"
  • #include "object_domain.h"

Classes

Type Name
struct attr_ndv
struct attr_stats
struct btree_stats
struct class_attr_ndv
struct class_stats

Public Types

Type Name
typedef struct attr_ndv ATTR_NDV
typedef struct attr_stats ATTR_STATS
typedef struct btree_stats BTREE_STATS
typedef struct class_attr_ndv CLASS_ATTR_NDV
typedef struct class_stats CLASS_STATS

Public Static Functions

Type Name
int stats_adjust_sampling_weight (INT64 sampling_ndv, int sampling_weight)

Macros

Type Name
define BTREE_STATS_PKEYS_NUM 8
define BTREE_STATS_RESERVED_NUM 4
define CLASS_ATTR_NDV_INITIALIZER {0, [**NULL**](freelistheap_8h.md#define-null)}
define EXPECTED_ROWS_PER_PAGE 20
define NUMBER_OF_SAMPLING_PAGES 5000
define STATS_MAX_PRECISION 4000 /\* [**max**](shard__proxy__io_8c.md#define-max) precision [**of**](broker__monitor_8c.md#function-timeout) [**char**](broker__monitor_8c.md#function-timeout) [**for**](dynamic__load_8c.md#function-for) [**getting**](broker__monitor_8c.md#function-timeout) statistics \*/
define STATS_MIN_MAX_SIZE [**sizeof**](broker__monitor_8c.md#function-timeout)([**DB\_DATA**](dbtype__def_8h.md#typedef-db_data))
define STATS_SAMPLING_LEAFS_MAX 5000 /\* sampling leaf pages \*/
define STATS_SAMPLING_THRESHOLD 5000 /\* sampling [**trial**](broker__monitor_8c.md#function-timeout) count \*/
define STATS_WITH_FULLSCAN [**true**](broker__monitor_8c.md#function-timeout)
define STATS_WITH_SAMPLING [**false**](broker__monitor_8c.md#function-timeout)
define stats_free_statistics_and_init (stats) /* multi line expression */

Public Types Documentation

typedef ATTR_NDV

typedef struct attr_ndv ATTR_NDV;

typedef ATTR_STATS

typedef struct attr_stats ATTR_STATS;

typedef BTREE_STATS

typedef struct btree_stats BTREE_STATS;

typedef CLASS_ATTR_NDV

typedef struct class_attr_ndv CLASS_ATTR_NDV;

typedef CLASS_STATS

typedef struct class_stats CLASS_STATS;

Public Static Functions Documentation

function stats_adjust_sampling_weight

static int stats_adjust_sampling_weight (
    INT64 sampling_ndv,
    int sampling_weight
) 

Macro Definition Documentation

define BTREE_STATS_PKEYS_NUM

#define BTREE_STATS_PKEYS_NUM `8`

define BTREE_STATS_RESERVED_NUM

#define BTREE_STATS_RESERVED_NUM `4`

define CLASS_ATTR_NDV_INITIALIZER

#define CLASS_ATTR_NDV_INITIALIZER `{0, NULL }`

define EXPECTED_ROWS_PER_PAGE

#define EXPECTED_ROWS_PER_PAGE `20`

define NUMBER_OF_SAMPLING_PAGES

#define NUMBER_OF_SAMPLING_PAGES `5000`

define STATS_MAX_PRECISION

#define STATS_MAX_PRECISION `4000   /* max precision of  char  for  getting statistics */`

define STATS_MIN_MAX_SIZE

#define STATS_MIN_MAX_SIZE `sizeof ( DB_DATA )`

define STATS_SAMPLING_LEAFS_MAX

#define STATS_SAMPLING_LEAFS_MAX `5000  /* sampling leaf pages */`

define STATS_SAMPLING_THRESHOLD

#define STATS_SAMPLING_THRESHOLD `5000  /* sampling trial count */`

define STATS_WITH_FULLSCAN

#define STATS_WITH_FULLSCAN `true`

define STATS_WITH_SAMPLING

#define STATS_WITH_SAMPLING `false`

define stats_free_statistics_and_init

#define stats_free_statistics_and_init (
    stats
) `/* multi line expression */`


The documentation for this class was generated from the following file cubrid/src/storage/statistics.h