File object_representation_sr.c
FileList > base > object_representation_sr.c
Go to the source code of this file
#include "object_representation_sr.h"
#include "btree_load.h"
#include "config.h"
#include "dbtype.h"
#include "deduplicate_key.h"
#include "error_manager.h"
#include "object_primitive.h"
#include "object_representation.h"
#include "set_object.h"
#include <assert.h>
#include <new>
#include <stdio.h>
#include <string.h>
#include "memory_wrapper.hpp"
Classes
Public Types
Public Functions
| Type |
Name |
| int |
or_class_get_partition_info (RECDES * record, OR_PARTITION * partition_info, REPR_ID * repr_id, int * has_partition_info)
|
| void |
or_class_hfid (RECDES * record, HFID * hfid)
|
| void |
or_class_rep_dir (RECDES * record, OID * rep_dir_p)
|
| void |
or_class_statistics (RECDES * record, OID * oid)
|
| int |
or_class_subclasses (RECDES * record, int * array_size, OID ** array_ptr)
|
| void |
or_class_tde_algorithm (RECDES * record, TDE_ALGORITHM * tde_algo)
|
| OR_CLASSREP * |
or_classrep_load_indexes (OR_CLASSREP * rep, RECDES * record)
|
| int |
or_classrep_needs_indexes (OR_CLASSREP * rep)
|
| void |
or_free_classrep (OR_CLASSREP * rep)
|
| OR_CLASSREP ** |
or_get_all_representation (RECDES * record, bool do_indexes, int * count)
|
| int |
or_get_attrcomment (RECDES * record, int attrid, char ** string, int * alloced_string)
|
| int |
or_get_attrname (RECDES * record, int attrid, char ** string, int * alloced_string)
|
| OR_CLASSREP * |
or_get_classrep (RECDES * record, int repid)
|
| OR_CLASSREP * |
or_get_classrep_noindex (RECDES * record, int repid)
|
| const char * |
or_get_constraint_comment (RECDES * record, const char * constraint_name)
|
| int |
or_get_unique_hierarchy (THREAD_ENTRY * thread_p, RECDES * record, int attrid, BTID * btid, OID ** class_oids, HFID ** hfids, int * num_classes, int * partition_local_index)
|
| int |
or_mvcc_add_header (RECDES * record, MVCC_REC_HEADER * mvcc_rec_header, int bound_bit, int variable_offset_size)
|
| int |
or_mvcc_get_header (RECDES * record, MVCC_REC_HEADER * mvcc_header)
|
| int |
or_mvcc_set_header (RECDES * record, MVCC_REC_HEADER * mvcc_rec_header)
|
| int |
or_mvcc_set_log_lsa_to_record (RECDES * record, LOG_LSA * lsa)
|
| int |
or_replace_rep_id (RECDES * record, int repid)
|
| void |
orc_class_hfid_from_record (RECDES * record, HFID * hfid)
|
| CLS_INFO * |
orc_class_info_from_record (RECDES * record)
|
| void |
orc_class_rep_dir (RECDES * record, OID * rep_dir_p)
|
| DISK_REPR * |
orc_diskrep_from_record (THREAD_ENTRY * thread_p, RECDES * record)
|
| void |
orc_free_class_info (CLS_INFO * info)
|
| void |
orc_free_diskrep (DISK_REPR * rep)
|
| int |
orc_subclasses_from_record (RECDES * record, int * array_size, OID ** array_ptr)
|
| int |
orc_superclasses_from_record (RECDES * record, int * array_size, OID ** array_ptr)
|
Public Static Functions
| Type |
Name |
| int |
or_cl_get_prop_nocopy (DB_SEQ * properties, const char * name, DB_VALUE * pvalue)
|
| const char * |
or_find_diskattr (RECDES * record, int attr_id)
|
| void |
or_get_att_index (char * ptr, BTID * btid)
|
| int |
or_get_attr_string (RECDES * record, int attr_id, int attr_index, char ** string, int * alloced_string)
|
| int |
or_get_current_default_value (OR_ATTRIBUTE * attr, char * ptr, int length)
|
| OR_CLASSREP * |
or_get_current_representation (RECDES * record, int do_indexes)
|
| int |
or_get_default_value (OR_ATTRIBUTE * attr, char * ptr, int length)
|
| TP_DOMAIN * |
or_get_domain_and_cache (char * ptr)
|
| TP_DOMAIN * |
or_get_domain_internal (char * ptr)
|
| int |
or_get_hierarchy_helper (THREAD_ENTRY * thread_p, OID * source_class, OID * class_, BTID * btid, OID ** class_oids, HFID ** hfids, int * num_classes, int * max_classes, int * partition_local_index)
|
| OR_CLASSREP * |
or_get_old_representation (RECDES * record, int repid, int do_indexes)
|
| void |
or_install_btids (OR_CLASSREP * rep, DB_SEQ * props)
|
| int |
or_install_btids_attribute (OR_CLASSREP * rep, int att_id, BTID * id)
|
| void |
or_install_btids_class (OR_CLASSREP * rep, BTID * id, DB_SEQ * constraint_seq, int seq_size, BTREE_TYPE type, const char * cons_name)
|
| void |
or_install_btids_constraint (OR_CLASSREP * rep, DB_SEQ * constraint_seq, BTREE_TYPE type, const char * cons_name)
|
| int |
or_install_btids_filter_pred (DB_SEQ * pred_seq, OR_INDEX * index)
|
| void |
or_install_btids_foreign_key (const char * fkname, DB_SEQ * fk_seq, OR_INDEX * index)
|
| void |
or_install_btids_foreign_key_ref (DB_SEQ * fk_container, OR_INDEX * index)
|
| void |
or_install_btids_function_info (DB_SEQ * fi_seq, OR_INDEX * index)
|
| void |
or_install_btids_prefix_length (DB_SEQ * prefix_seq, OR_INDEX * index, int num_attrs)
|
| int |
or_mvcc_get_chn (OR_BUF * buf, int * error)
|
| MVCCID |
or_mvcc_get_delid (OR_BUF * buf, int mvcc_flags, int * error)
|
| char |
or_mvcc_get_flag (RECDES * record)
|
| MVCCID |
or_mvcc_get_insid (OR_BUF * buf, int mvcc_flags, int * error)
|
| int |
or_mvcc_get_prev_version_lsa (OR_BUF * buf, int mvcc_flags, LOG_LSA * prev_version_lsa)
|
| int |
or_mvcc_set_chn (OR_BUF * buf, MVCC_REC_HEADER * mvcc_rec_header)
|
| int |
or_mvcc_set_delid (OR_BUF * buf, MVCC_REC_HEADER * mvcc_rec_header)
|
| void |
or_mvcc_set_flag (RECDES * record, char flags)
|
| int |
or_mvcc_set_insid (OR_BUF * buf, MVCC_REC_HEADER * mvcc_rec_header)
|
| int |
or_mvcc_set_prev_version_lsa (OR_BUF * buf, MVCC_REC_HEADER * mvcc_rec_header)
|
Macros
Public Types Documentation
typedef OR_BTREE_PROPERTY
typedef struct or_btree_property OR_BTREE_PROPERTY;
Public Functions Documentation
function or_class_get_partition_info
int or_class_get_partition_info (
RECDES * record,
OR_PARTITION * partition_info,
REPR_ID * repr_id,
int * has_partition_info
)
function or_class_hfid
void or_class_hfid (
RECDES * record,
HFID * hfid
)
function or_class_rep_dir
void or_class_rep_dir (
RECDES * record,
OID * rep_dir_p
)
function or_class_statistics
void or_class_statistics (
RECDES * record,
OID * oid
)
function or_class_subclasses
int or_class_subclasses (
RECDES * record,
int * array_size,
OID ** array_ptr
)
function or_class_tde_algorithm
void or_class_tde_algorithm (
RECDES * record,
TDE_ALGORITHM * tde_algo
)
function or_classrep_load_indexes
OR_CLASSREP * or_classrep_load_indexes (
OR_CLASSREP * rep,
RECDES * record
)
function or_classrep_needs_indexes
int or_classrep_needs_indexes (
OR_CLASSREP * rep
)
function or_free_classrep
void or_free_classrep (
OR_CLASSREP * rep
)
function or_get_all_representation
OR_CLASSREP ** or_get_all_representation (
RECDES * record,
bool do_indexes,
int * count
)
int or_get_attrcomment (
RECDES * record,
int attrid,
char ** string,
int * alloced_string
)
function or_get_attrname
int or_get_attrname (
RECDES * record,
int attrid,
char ** string,
int * alloced_string
)
function or_get_classrep
OR_CLASSREP * or_get_classrep (
RECDES * record,
int repid
)
function or_get_classrep_noindex
OR_CLASSREP * or_get_classrep_noindex (
RECDES * record,
int repid
)
const char * or_get_constraint_comment (
RECDES * record,
const char * constraint_name
)
function or_get_unique_hierarchy
int or_get_unique_hierarchy (
THREAD_ENTRY * thread_p,
RECDES * record,
int attrid,
BTID * btid,
OID ** class_oids,
HFID ** hfids,
int * num_classes,
int * partition_local_index
)
int or_mvcc_add_header (
RECDES * record,
MVCC_REC_HEADER * mvcc_rec_header,
int bound_bit,
int variable_offset_size
)
int or_mvcc_get_header (
RECDES * record,
MVCC_REC_HEADER * mvcc_header
)
int or_mvcc_set_header (
RECDES * record,
MVCC_REC_HEADER * mvcc_rec_header
)
function or_mvcc_set_log_lsa_to_record
int or_mvcc_set_log_lsa_to_record (
RECDES * record,
LOG_LSA * lsa
)
function or_replace_rep_id
int or_replace_rep_id (
RECDES * record,
int repid
)
function orc_class_hfid_from_record
void orc_class_hfid_from_record (
RECDES * record,
HFID * hfid
)
function orc_class_info_from_record
CLS_INFO * orc_class_info_from_record (
RECDES * record
)
function orc_class_rep_dir
void orc_class_rep_dir (
RECDES * record,
OID * rep_dir_p
)
function orc_diskrep_from_record
DISK_REPR * orc_diskrep_from_record (
THREAD_ENTRY * thread_p,
RECDES * record
)
function orc_free_class_info
void orc_free_class_info (
CLS_INFO * info
)
function orc_free_diskrep
void orc_free_diskrep (
DISK_REPR * rep
)
function orc_subclasses_from_record
int orc_subclasses_from_record (
RECDES * record,
int * array_size,
OID ** array_ptr
)
function orc_superclasses_from_record
int orc_superclasses_from_record (
RECDES * record,
int * array_size,
OID ** array_ptr
)
Public Static Functions Documentation
function or_cl_get_prop_nocopy
static int or_cl_get_prop_nocopy (
DB_SEQ * properties,
const char * name,
DB_VALUE * pvalue
)
function or_find_diskattr
static const char * or_find_diskattr (
RECDES * record,
int attr_id
)
function or_get_att_index
static void or_get_att_index (
char * ptr,
BTID * btid
)
function or_get_attr_string
static int or_get_attr_string (
RECDES * record,
int attr_id,
int attr_index,
char ** string,
int * alloced_string
)
function or_get_current_default_value
static int or_get_current_default_value (
OR_ATTRIBUTE * attr,
char * ptr,
int length
)
function or_get_current_representation
static OR_CLASSREP * or_get_current_representation (
RECDES * record,
int do_indexes
)
function or_get_default_value
static int or_get_default_value (
OR_ATTRIBUTE * attr,
char * ptr,
int length
)
function or_get_domain_and_cache
static TP_DOMAIN * or_get_domain_and_cache (
char * ptr
)
function or_get_domain_internal
static TP_DOMAIN * or_get_domain_internal (
char * ptr
)
function or_get_hierarchy_helper
static int or_get_hierarchy_helper (
THREAD_ENTRY * thread_p,
OID * source_class,
OID * class_,
BTID * btid,
OID ** class_oids,
HFID ** hfids,
int * num_classes,
int * max_classes,
int * partition_local_index
)
function or_get_old_representation
static OR_CLASSREP * or_get_old_representation (
RECDES * record,
int repid,
int do_indexes
)
function or_install_btids
static void or_install_btids (
OR_CLASSREP * rep,
DB_SEQ * props
)
function or_install_btids_attribute
static int or_install_btids_attribute (
OR_CLASSREP * rep,
int att_id,
BTID * id
)
function or_install_btids_class
static void or_install_btids_class (
OR_CLASSREP * rep,
BTID * id,
DB_SEQ * constraint_seq,
int seq_size,
BTREE_TYPE type,
const char * cons_name
)
function or_install_btids_constraint
static void or_install_btids_constraint (
OR_CLASSREP * rep,
DB_SEQ * constraint_seq,
BTREE_TYPE type,
const char * cons_name
)
function or_install_btids_filter_pred
static int or_install_btids_filter_pred (
DB_SEQ * pred_seq,
OR_INDEX * index
)
function or_install_btids_foreign_key
static void or_install_btids_foreign_key (
const char * fkname,
DB_SEQ * fk_seq,
OR_INDEX * index
)
function or_install_btids_foreign_key_ref
static void or_install_btids_foreign_key_ref (
DB_SEQ * fk_container,
OR_INDEX * index
)
function or_install_btids_function_info
static void or_install_btids_function_info (
DB_SEQ * fi_seq,
OR_INDEX * index
)
function or_install_btids_prefix_length
static void or_install_btids_prefix_length (
DB_SEQ * prefix_seq,
OR_INDEX * index,
int num_attrs
)
function or_mvcc_get_chn
static inline int or_mvcc_get_chn (
OR_BUF * buf,
int * error
)
function or_mvcc_get_delid
static inline MVCCID or_mvcc_get_delid (
OR_BUF * buf,
int mvcc_flags,
int * error
)
function or_mvcc_get_flag
static char or_mvcc_get_flag (
RECDES * record
)
function or_mvcc_get_insid
static inline MVCCID or_mvcc_get_insid (
OR_BUF * buf,
int mvcc_flags,
int * error
)
function or_mvcc_get_prev_version_lsa
static inline int or_mvcc_get_prev_version_lsa (
OR_BUF * buf,
int mvcc_flags,
LOG_LSA * prev_version_lsa
)
function or_mvcc_set_chn
static inline int or_mvcc_set_chn (
OR_BUF * buf,
MVCC_REC_HEADER * mvcc_rec_header
)
function or_mvcc_set_delid
static inline int or_mvcc_set_delid (
OR_BUF * buf,
MVCC_REC_HEADER * mvcc_rec_header
)
function or_mvcc_set_flag
static void or_mvcc_set_flag (
RECDES * record,
char flags
)
function or_mvcc_set_insid
static inline int or_mvcc_set_insid (
OR_BUF * buf,
MVCC_REC_HEADER * mvcc_rec_header
)
function or_mvcc_set_prev_version_lsa
static inline int or_mvcc_set_prev_version_lsa (
OR_BUF * buf,
MVCC_REC_HEADER * mvcc_rec_header
)
Macro Definition Documentation
define DATA_INIT
#define DATA_INIT (
data,
type
) `memset (data, 0, sizeof ( DB_DATA ))`
define HEAP_MOVE_INSIDE_RECORD
#define HEAP_MOVE_INSIDE_RECORD (
rec,
dest_offset,
src_offset
) `/* multi line expression */`
define OR_ARRAY_EXTENT
#define OR_ARRAY_EXTENT `10`
define OR_VAR_TABLE_ELEMENT_LENGTH
#define OR_VAR_TABLE_ELEMENT_LENGTH (
table,
index
) `OR_VAR_TABLE_ELEMENT_LENGTH_INTERNAL (table, index, \ BIG_VAR_OFFSET_SIZE )`
define OR_VAR_TABLE_ELEMENT_OFFSET
#define OR_VAR_TABLE_ELEMENT_OFFSET (
table,
index
) `OR_VAR_TABLE_ELEMENT_OFFSET_INTERNAL (table, index, \ BIG_VAR_OFFSET_SIZE )`
The documentation for this class was generated from the following file cubrid/src/base/object_representation_sr.c