Skip to content

File statistics_sr.c

FileList > cubrid > src > storage > statistics_sr.c

Go to the source code of this file

  • #include "config.h"
  • #include <stdio.h>
  • #include <string.h>
  • #include <math.h>
  • #include "statistics_sr.h"
  • #include "btree.h"
  • #include "heap_file.h"
  • #include "boot_sr.h"
  • #include "partition_sr.h"
  • #include "object_primitive.h"
  • #include "object_representation.h"
  • #include "thread_entry.hpp"
  • #include "system_parameter.h"
  • #include "catalog_class.h"
  • #include "memory_wrapper.hpp"

Classes

Type Name
struct class_id_list
struct partition_stats_acumulator

Public Types

Type Name
typedef struct class_id_list CLASS_ID_LIST
typedef struct partition_stats_acumulator PARTITION_STATS_ACUMULATOR

Public Functions

Type Name
void stats_dump_class_statistics (CLASS_STATS * class_stats, FILE * fpp)
const BTREE_STATS * stats_find_inherited_index_stats (OR_CLASSREP * cls_rep, OR_CLASSREP * subcls_rep, DISK_ATTR * subcls_attr, BTID * cls_btid)
unsigned int stats_get_time_stamp (void)
char * xstats_get_statistics_from_server (THREAD_ENTRY * thread_p, OID * class_id_p, unsigned int time_stamp, int * length_p)
int xstats_update_statistics (THREAD_ENTRY * thread_p, OID * class_id_p, bool with_fullscan, CLASS_ATTR_NDV * class_attr_ndv)

Public Static Functions

Type Name
int stats_compare_data (DB_DATA * data1, DB_DATA * data2, DB_TYPE type)
int stats_compare_date (DB_DATE * date1, DB_DATE * date2)
int stats_compare_datetime (DB_DATETIME * datetime1_p, DB_DATETIME * datetime2_p)
int stats_compare_money (DB_MONETARY * mn1, DB_MONETARY * mn2)
int stats_compare_time (DB_TIME * time1, DB_TIME * time2)
int stats_compare_utime (DB_UTIME * utime1, DB_UTIME * utime2)
int stats_update_partitioned_statistics (THREAD_ENTRY * thread_p, OID * class_oid, const char * class_name, OID * partitions, int count, bool with_fullscan, CLASS_ATTR_NDV * class_attr_ndv)

Macros

Type Name
define SQUARE (n) ((n)\*(n))

Public Types Documentation

typedef CLASS_ID_LIST

typedef struct class_id_list CLASS_ID_LIST;

typedef PARTITION_STATS_ACUMULATOR

typedef struct partition_stats_acumulator PARTITION_STATS_ACUMULATOR;

Public Functions Documentation

function stats_dump_class_statistics

void stats_dump_class_statistics (
    CLASS_STATS * class_stats,
    FILE * fpp
) 

function stats_find_inherited_index_stats

const  BTREE_STATS * stats_find_inherited_index_stats (
    OR_CLASSREP * cls_rep,
    OR_CLASSREP * subcls_rep,
    DISK_ATTR * subcls_attr,
    BTID * cls_btid
) 

function stats_get_time_stamp

unsigned  int stats_get_time_stamp (
    void
) 

function xstats_get_statistics_from_server

char * xstats_get_statistics_from_server (
    THREAD_ENTRY * thread_p,
    OID * class_id_p,
    unsigned  int time_stamp,
    int * length_p
) 

function xstats_update_statistics

int xstats_update_statistics (
    THREAD_ENTRY * thread_p,
    OID * class_id_p,
    bool with_fullscan,
    CLASS_ATTR_NDV * class_attr_ndv
) 

Public Static Functions Documentation

function stats_compare_data

static int stats_compare_data (
    DB_DATA * data1,
    DB_DATA * data2,
    DB_TYPE type
) 

function stats_compare_date

static int stats_compare_date (
    DB_DATE * date1,
    DB_DATE * date2
) 

function stats_compare_datetime

static int stats_compare_datetime (
    DB_DATETIME * datetime1_p,
    DB_DATETIME * datetime2_p
) 

function stats_compare_money

static int stats_compare_money (
    DB_MONETARY * mn1,
    DB_MONETARY * mn2
) 

function stats_compare_time

static int stats_compare_time (
    DB_TIME * time1,
    DB_TIME * time2
) 

function stats_compare_utime

static int stats_compare_utime (
    DB_UTIME * utime1,
    DB_UTIME * utime2
) 

function stats_update_partitioned_statistics

static int stats_update_partitioned_statistics (
    THREAD_ENTRY * thread_p,
    OID * class_oid,
    const  char * class_name,
    OID * partitions,
    int count,
    bool with_fullscan,
    CLASS_ATTR_NDV * class_attr_ndv
) 

Macro Definition Documentation

define SQUARE

#define SQUARE (
    n
) `((n)*(n))`


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