CUBRID Engine  latest
object_representation.c File Reference
#include "config.h"
#include <string.h>
#include <setjmp.h>
#include <assert.h>
#include "db_json.hpp"
#include "dbtype.h"
#include "error_manager.h"
#include "file_io.h"
#include "log_lsa.hpp"
#include "method_def.hpp"
#include "object_primitive.h"
#include "object_representation.h"
#include "oid.h"
#include "porting_inline.hpp"
#include "query_list.h"
#include "set_object.h"
Include dependency graph for object_representation.c:

Go to the source code of this file.

Macros

#define BITS_TO_BYTES(bit_cnt)   (((bit_cnt) + 7) / 8)
 
#define OR_DOMAIN_TYPE_MASK   (0x3F)
 
#define OR_DOMAIN_NEXT_FLAG   (0x80) /* domain following this one */
 
#define OR_DOMAIN_NULL_FLAG   (0x40) /* is a tagged NULL value */
 
#define OR_DOMAIN_DESC_FLAG   (0x40) /* asc/desc for only index key */
 
#define OR_DOMAIN_CLASS_OID_FLAG   (0x100) /* for object types */
 
#define OR_DOMAIN_SET_DOMAIN_FLAG   (0x100) /* for set types */
 
#define OR_DOMAIN_BUILTIN_FLAG   (0x100) /* for NULL type only */
 
#define OR_DOMAIN_ENUMERATION_FLAG   (0x100) /* for enumeration type only */
 
#define OR_DOMAIN_ENUM_COLL_FLAG   (0x200) /* for enumeration type only */
 
#define OR_DOMAIN_SCHEMA_FLAG   (0x400) /* for json */
 
#define OR_DOMAIN_SCALE_MASK   (0xFF00)
 
#define OR_DOMAIN_SCALE_SHIFT   (8)
 
#define OR_DOMAIN_SCALE_MAX   (0xFF)
 
#define OR_DOMAIN_CODSET_MASK   (0xFF00)
 
#define OR_DOMAIN_CODSET_SHIFT   (8)
 
#define OR_DOMAIN_PRECISION_MASK   (0xFFFF0000)
 
#define OR_DOMAIN_PRECISION_SHIFT   (16)
 
#define OR_DOMAIN_PRECISION_MAX   (0xFFFF)
 
#define OR_DOMAIN_COLLATION_MASK   (0x000000FF)
 
#define OR_DOMAIN_COLL_ENFORCE_FLAG   (0x80000000)
 
#define OR_DOMAIN_COLL_LEAVE_FLAG   (0x40000000)
 

Functions

static TP_DOMAINunpack_domain (OR_BUF *buf, int *is_null)
 
static char * or_pack_method_sig (char *ptr, void *method_sig_ptr)
 
static char * or_unpack_method_sig (char *ptr, void **method_sig_ptr, int n)
 
static int or_put_varchar_internal (OR_BUF *buf, char *string, int charlen, int align)
 
static int or_varbit_length_internal (int bitlen, int align)
 
static int or_varchar_length_internal (int charlen, int align)
 
static int or_put_varbit_internal (OR_BUF *buf, const char *string, int bitlen, int align)
 
static int or_packed_json_schema_length (const char *json_schema)
 
static int or_packed_json_validator_length (JSON_VALIDATOR *json_validator)
 
static char * or_unpack_var_table_internal (char *ptr, int nvars, OR_VARINFO *vars, int offset_size)
 
int classobj_get_prop (DB_SEQ *properties, const char *name, DB_VALUE *pvalue)
 
int classobj_decompose_property_oid (const char *buffer, int *volid, int *fileid, int *pageid)
 
char * or_class_name (RECDES *record)
 
int or_rep_id (RECDES *record)
 
int or_set_rep_id (RECDES *record, int repid)
 
int or_chn (RECDES *record)
 
int or_replace_chn (RECDES *record, int chn)
 
int or_mvcc_get_repid_and_flags (OR_BUF *buf, int *error)
 
int or_mvcc_set_repid_and_flags (OR_BUF *buf, int mvcc_flag, int repid, int bound_bit, int variable_offset_size)
 
int or_overflow (OR_BUF *buf)
 
int or_underflow (OR_BUF *buf)
 
void or_abort (OR_BUF *buf)
 
void or_init (OR_BUF *buf, char *data, int length)
 
int or_put_align32 (OR_BUF *buf)
 
int or_get_align32 (OR_BUF *buf)
 
int or_get_align64 (OR_BUF *buf)
 
int or_get_align (OR_BUF *buf, int align)
 
int or_packed_varchar_length (int charlen)
 
int or_varchar_length (int charlen)
 
int or_packed_recdesc_length (int length)
 
int or_put_varchar (OR_BUF *buf, char *string, int charlen)
 
int or_packed_put_varchar (OR_BUF *buf, char *string, int charlen)
 
int or_get_varchar_length (OR_BUF *buf, int *rc)
 
int or_skip_varchar_remainder (OR_BUF *buf, int charlen, int align)
 
int or_skip_varchar (OR_BUF *buf, int align)
 
int or_packed_varbit_length (int bitlen)
 
int or_varbit_length (int bitlen)
 
int or_packed_put_varbit (OR_BUF *buf, const char *string, int bitlen)
 
int or_put_varbit (OR_BUF *buf, const char *string, int bitlen)
 
int or_put_offset (OR_BUF *buf, int num)
 
int or_put_offset_internal (OR_BUF *buf, int num, int offset_size)
 
int or_get_offset (OR_BUF *buf, int *error)
 
int or_get_offset_internal (OR_BUF *buf, int *error, int offset_size)
 
int or_get_varbit_length (OR_BUF *buf, int *rc)
 
int or_skip_varbit_remainder (OR_BUF *buf, int bitlen, int align)
 
int or_skip_varbit (OR_BUF *buf, int align)
 
int or_put_byte (OR_BUF *buf, int num)
 
int or_get_byte (OR_BUF *buf, int *error)
 
int or_put_short (OR_BUF *buf, int num)
 
int or_get_short (OR_BUF *buf, int *error)
 
int or_put_int (OR_BUF *buf, int num)
 
int or_get_int (OR_BUF *buf, int *error)
 
int or_put_bigint (OR_BUF *buf, DB_BIGINT num)
 
DB_BIGINT or_get_bigint (OR_BUF *buf, int *error)
 
int or_put_float (OR_BUF *buf, float fnum)
 
float or_get_float (OR_BUF *buf, int *error)
 
int or_put_double (OR_BUF *buf, double dnum)
 
double or_get_double (OR_BUF *buf, int *error)
 
int or_put_time (OR_BUF *buf, DB_TIME *timeval)
 
int or_get_time (OR_BUF *buf, DB_TIME *timeval)
 
int or_put_utime (OR_BUF *buf, DB_UTIME *timeval)
 
int or_get_utime (OR_BUF *buf, DB_UTIME *timeval)
 
int or_put_timestamptz (OR_BUF *buf, DB_TIMESTAMPTZ *ts_tz)
 
int or_get_timestamptz (OR_BUF *buf, DB_TIMESTAMPTZ *ts_tz)
 
int or_put_date (OR_BUF *buf, DB_DATE *date)
 
int or_get_date (OR_BUF *buf, DB_DATE *date)
 
int or_put_datetime (OR_BUF *buf, DB_DATETIME *datetimeval)
 
int or_get_datetime (OR_BUF *buf, DB_DATETIME *datetime)
 
int or_put_datetimetz (OR_BUF *buf, DB_DATETIMETZ *datetimetz)
 
int or_get_datetimetz (OR_BUF *buf, DB_DATETIMETZ *datetimetz)
 
int or_put_monetary (OR_BUF *buf, DB_MONETARY *monetary)
 
int or_get_monetary (OR_BUF *buf, DB_MONETARY *monetary)
 
int or_put_oid (OR_BUF *buf, const OID *oid)
 
int or_get_oid (OR_BUF *buf, OID *oid)
 
int or_put_data (OR_BUF *buf, const char *data, int length)
 
int or_get_data (OR_BUF *buf, char *data, int length)
 
int or_put_string_aligned (OR_BUF *buf, char *str)
 
int or_pad (OR_BUF *buf, int length)
 
int or_advance (OR_BUF *buf, int offset)
 
int or_seek (OR_BUF *buf, int psn)
 
int or_align (OR_BUF *buf, int alignment)
 
char * or_unpack_var_table (char *ptr, int nvars, OR_VARINFO *vars)
 
OR_VARINFOor_get_var_table (OR_BUF *buf, int nvars, char *(*allocator)(int))
 
OR_VARINFOor_get_var_table_internal (OR_BUF *buf, int nvars, char *(*allocator)(int), int offset_size)
 
char * or_pack_int (char *ptr, int number)
 
char * or_unpack_int (char *ptr, int *number)
 
char * or_pack_int64 (char *ptr, INT64 number)
 
char * or_unpack_int64 (char *ptr, INT64 *number)
 
char * or_pack_short (char *ptr, short number)
 
char * or_unpack_short (char *ptr, short *number)
 
char * or_pack_errcode (char *ptr, int error)
 
char * or_unpack_errcode (char *ptr, int *error)
 
char * or_pack_lock (char *ptr, LOCK lock)
 
char * or_unpack_lock (char *ptr, LOCK *lock)
 
char * or_pack_float (char *ptr, float number)
 
char * or_unpack_float (char *ptr, float *number)
 
char * or_pack_double (char *ptr, double number)
 
char * or_unpack_double (char *ptr, double *number)
 
char * or_unpack_int_array (char *ptr, int n, int **number_array)
 
char * or_pack_oid (char *ptr, const OID *oid)
 
char * or_pack_oid_array (char *ptr, int n, const OID *oids)
 
char * or_unpack_oid (char *ptr, OID *oid)
 
char * or_unpack_oid_array (char *ptr, int n, OID **oids)
 
char * or_pack_hfid (const char *ptr, const HFID *hfid)
 
char * or_unpack_hfid (char *ptr, HFID *hfid)
 
char * or_unpack_hfid_array (char *ptr, int n, HFID **hfids)
 
char * or_pack_ehid (char *ptr, EHID *ehid)
 
char * or_pack_recdes (char *buf, RECDES *recdes)
 
char * or_unpack_ehid (char *ptr, EHID *ehid)
 
char * or_pack_btid (char *ptr, const BTID *btid)
 
char * or_unpack_btid (char *ptr, BTID *btid)
 
char * or_pack_log_lsa (const char *ptr, const log_lsa *lsa)
 
char * or_unpack_log_lsa (char *ptr, log_lsa *lsa)
 
char * or_unpack_set (char *ptr, setobj **set, TP_DOMAIN *domain)
 
char * or_unpack_setref (char *ptr, DB_SET **ref)
 
char * or_pack_string (char *ptr, const char *string)
 
char * or_pack_string_with_null_padding (char *ptr, const char *string, size_t len)
 
char * or_pack_stream (char *ptr, const char *stream, size_t len)
 
char * or_pack_string_with_length (char *ptr, const char *string, int length)
 
char * or_unpack_string (char *ptr, char **string)
 
char * or_unpack_stream (char *ptr, char *stream, size_t len)
 
char * or_unpack_string_alloc (char *ptr, char **string)
 
char * or_unpack_string_nocopy (char *ptr, char **string)
 
int or_packed_string_length (const char *string, int *strlenp)
 
int or_packed_stream_length (size_t len)
 
char * or_pack_bool_array (char *ptr, const bool *bools, int size)
 
char * or_unpack_bool_array (char *ptr, bool **bools)
 
int or_packed_bool_array_length (const bool *bools, int size)
 
void or_encode (char *buffer, const char *source, int size)
 
void or_decode (const char *buffer, char *dest, int size)
 
int or_packed_domain_size (TP_DOMAIN *domain, int include_classoids)
 
int or_put_domain (OR_BUF *buf, TP_DOMAIN *domain, int include_classoids, int is_null)
 
static TP_DOMAINunpack_domain_2 (OR_BUF *buf, int *is_null)
 
TP_DOMAINor_get_domain (OR_BUF *buf, TP_DOMAIN *caller_dom, int *is_null)
 
char * or_pack_domain (char *ptr, TP_DOMAIN *domain, int include_classoids, int is_null)
 
char * or_unpack_domain (char *ptr, struct tp_domain **domain_ptr, int *is_null)
 
int or_put_sub_domain (OR_BUF *buf)
 
void or_packed_set_info (DB_TYPE set_type, TP_DOMAIN *domain, int include_domain, int *bound_bits, int *offset_table, int *element_tags, int *element_size)
 
int or_put_set_header (OR_BUF *buf, DB_TYPE set_type, int size, int domain, int bound_bits, int offset_table, int element_tags, int common_sub_header)
 
int or_get_set_header (OR_BUF *buf, DB_TYPE *set_type, int *size, int *domain, int *bound_bits, int *offset_table, int *element_tags, int *common_sub)
 
int or_skip_set_header (OR_BUF *buf)
 
int or_packed_set_length (setobj *set, int include_domain)
 
void or_put_set (OR_BUF *buf, setobj *set, int include_domain)
 
setobjor_get_set (OR_BUF *buf, TP_DOMAIN *domain)
 
int or_disk_set_size (OR_BUF *buf, TP_DOMAIN *set_domain, DB_TYPE *set_type)
 
int or_packed_value_size (const DB_VALUE *value, int collapse_null, int include_domain, int include_domain_classoids)
 
int or_put_value (OR_BUF *buf, DB_VALUE *value, int collapse_null, int include_domain, int include_domain_classoids)
 
int or_get_value (OR_BUF *buf, DB_VALUE *value, TP_DOMAIN *domain, int expected, bool copy)
 
char * or_pack_value (char *buf, DB_VALUE *value)
 
char * or_pack_mem_value (char *ptr, DB_VALUE *value, int *packed_len_except_alignment)
 
char * or_unpack_value (const char *buf, DB_VALUE *value)
 
char * or_unpack_mem_value (char *ptr, DB_VALUE *value)
 
char * or_pack_listid (char *ptr, void *listid_ptr)
 
char * or_unpack_recdes (char *buf, RECDES **recdes)
 
char * or_unpack_listid (char *ptr, void *listid_ptr)
 
char * or_unpack_unbound_listid (char *ptr, void **listid_ptr)
 
int or_listid_length (void *listid_ptr)
 
char * or_pack_method_sig_list (char *ptr, void *method_sig_list_ptr)
 
char * or_unpack_method_sig_list (char *ptr, void **method_sig_list_ptr)
 
int or_method_sig_list_length (void *method_sig_list_ptr)
 
char * or_pack_db_value (char *buffer, DB_VALUE *var)
 
int or_db_value_size (DB_VALUE *var)
 
char * or_unpack_db_value (char *buffer, DB_VALUE *val)
 
int or_packed_enumeration_size (const DB_ENUMERATION *enumeration)
 
int or_put_enumeration (OR_BUF *buf, const DB_ENUMERATION *enumeration)
 
int or_get_enumeration (OR_BUF *buf, DB_ENUMERATION *enumeration)
 
int or_header_size (char *ptr)
 
char * or_pack_ptr (char *ptr, UINTPTR ptrval)
 
char * or_unpack_ptr (char *ptr, UINTPTR *ptrval)
 
int or_put_mvccid (OR_BUF *buf, MVCCID mvccid)
 
int or_get_mvccid (OR_BUF *buf, MVCCID *mvccid)
 
char * or_pack_mvccid (char *ptr, const MVCCID mvccid)
 
char * or_unpack_mvccid (char *ptr, MVCCID *mvccid)
 
char * or_pack_sha1 (char *ptr, const SHA1Hash *sha1)
 
char * or_unpack_sha1 (char *ptr, SHA1Hash *sha1)
 
unsigned short ntohs (unsigned short from)
 
unsigned int ntohl (unsigned int from)
 
float ntohf (UINT32 from)
 
double ntohd (UINT64 from)
 
UINT64 ntohi64 (UINT64 from)
 
unsigned short htons (unsigned short from)
 
unsigned int htonl (unsigned int from)
 
UINT64 htoni64 (UINT64 from)
 
UINT32 htonf (float from)
 
UINT64 htond (double from)
 
int or_packed_spacedb_size (const SPACEDB_ALL *all, const SPACEDB_ONEVOL *vols, const SPACEDB_FILES *files)
 
char * or_pack_spacedb (char *ptr, const SPACEDB_ALL *all, const SPACEDB_ONEVOL *vols, const SPACEDB_FILES *files)
 
char * or_unpack_spacedb (char *ptr, SPACEDB_ALL *all, SPACEDB_ONEVOL **vols, SPACEDB_FILES *files)
 
int or_put_string_aligned_with_length (OR_BUF *buf, const char *str)
 
void classobj_initialize_default_expr (DB_DEFAULT_EXPR *default_expr)
 
int or_get_json_validator (OR_BUF *buf, REFPTR(JSON_VALIDATOR, validator))
 
int or_put_json_validator (OR_BUF *buf, JSON_VALIDATOR *validator)
 
int or_get_json_schema (OR_BUF *buf, REFPTR(char, schema))
 
int or_put_json_schema (OR_BUF *buf, const char *schema)
 

Variables

int mvcc_header_size_lookup [8]
 
int or_Type_sizes []
 

Macro Definition Documentation

#define BITS_TO_BYTES (   bit_cnt)    (((bit_cnt) + 7) / 8)
#define OR_DOMAIN_BUILTIN_FLAG   (0x100) /* for NULL type only */

Definition at line 3899 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_CLASS_OID_FLAG   (0x100) /* for object types */

Definition at line 3897 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_CODSET_MASK   (0xFF00)

Definition at line 3908 of file object_representation.c.

Referenced by unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_CODSET_SHIFT   (8)

Definition at line 3909 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_COLL_ENFORCE_FLAG   (0x80000000)

Definition at line 3916 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_COLL_LEAVE_FLAG   (0x40000000)

Definition at line 3917 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_COLLATION_MASK   (0x000000FF)

Definition at line 3915 of file object_representation.c.

Referenced by unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_DESC_FLAG   (0x40) /* asc/desc for only index key */

Definition at line 3895 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_ENUM_COLL_FLAG   (0x200) /* for enumeration type only */

Definition at line 3901 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_ENUMERATION_FLAG   (0x100) /* for enumeration type only */

Definition at line 3900 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_NEXT_FLAG   (0x80) /* domain following this one */

Definition at line 3892 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_NULL_FLAG   (0x40) /* is a tagged NULL value */

Definition at line 3894 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_PRECISION_MASK   (0xFFFF0000)

Definition at line 3911 of file object_representation.c.

Referenced by unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_PRECISION_MAX   (0xFFFF)
#define OR_DOMAIN_PRECISION_SHIFT   (16)

Definition at line 3912 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_SCALE_MASK   (0xFF00)

Definition at line 3904 of file object_representation.c.

Referenced by unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_SCALE_MAX   (0xFF)
#define OR_DOMAIN_SCALE_SHIFT   (8)

Definition at line 3905 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_SCHEMA_FLAG   (0x400) /* for json */

Definition at line 3902 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_SET_DOMAIN_FLAG   (0x100) /* for set types */

Definition at line 3898 of file object_representation.c.

Referenced by or_put_domain(), unpack_domain(), and unpack_domain_2().

#define OR_DOMAIN_TYPE_MASK   (0x3F)

Function Documentation

int classobj_decompose_property_oid ( const char *  buffer,
int *  volid,
int *  fileid,
int *  pageid 
)
UINT64 htond ( double  from)

Definition at line 7806 of file object_representation.c.

References p.

Referenced by OR_PUT_DOUBLE().

Here is the caller graph for this function:

UINT32 htonf ( float  from)

Definition at line 7787 of file object_representation.c.

References p.

Referenced by OR_PUT_FLOAT().

Here is the caller graph for this function:

UINT64 htoni64 ( UINT64  from)

Definition at line 7780 of file object_representation.c.

References ntohi64().

unsigned int htonl ( unsigned int  from)

Definition at line 7773 of file object_representation.c.

References ntohl().

Referenced by cas_make_session_for_driver(), cas_send_connect_reply_to_driver(), css_abort_request(), css_accept_server_request(), css_connect_to_master_server(), css_open_server_connection_socket(), css_process_all_count_info(), css_process_change_server_ha_mode_request(), css_process_get_server_ha_mode(), css_process_get_server_ha_mode_request(), css_process_request_count_info(), css_process_server_count_info(), css_process_server_state(), css_reject_client_request(), css_reject_server_request(), css_send_close_request(), css_send_command_to_server(), css_send_heartbeat_request(), css_send_reply_to_new_client_request(), css_send_to_existing_server(), css_set_io_vector(), css_set_net_header(), css_tcp_master_open(), css_transfer_fd(), dispatch_thr_f(), ehash_hash_eight_bytes_type(), fn_proxy_cas_prepare(), fn_proxy_cas_prepare_and_execute(), fn_proxy_cas_schema_info(), hb_cluster_initialize(), hb_deregister_from_master(), hb_make_set_hbp_register(), hb_resource_send_changemode(), hb_set_net_header(), MCWriteCat(), net_arg_put_int(), net_buf_cp_int(), net_buf_overwrite_int(), net_write_header(), net_write_int(), process_ha_deregister_by_pid(), process_master_shutdown(), process_request(), process_slave_kill(), proxy_init_net_buf(), proxy_io_make_client_dbinfo_ok(), proxy_io_register_to_broker(), proxy_listener_thr_f(), send_error_to_driver(), set_data_length(), and shard_stmt_save_prepare_request().

double ntohd ( UINT64  from)

Definition at line 7723 of file object_representation.c.

float ntohf ( UINT32  from)

Definition at line 7705 of file object_representation.c.

UINT64 ntohi64 ( UINT64  from)

Definition at line 7744 of file object_representation.c.

Referenced by htoni64().

Here is the caller graph for this function:

unsigned int ntohl ( unsigned int  from)

Definition at line 7687 of file object_representation.c.

Referenced by cas_set_session_id(), check_cas_log(), css_check_magic_with_socket(), css_connect_to_cubrid_server(), css_connect_to_master_server(), css_get_master_request(), css_is_shutdown_timeout_expired(), css_net_recv(), css_net_send8(), css_process_deregister_ha_process(), css_process_ha_deregister_by_pid(), css_process_kill_slave(), css_process_shutdown(), css_queue_command_packet(), css_queue_data_packet(), css_queue_error_packet(), css_queue_packet(), css_queue_unexpected_packet(), css_read_and_queue(), css_read_header(), css_read_one_request(), css_receive_data(), css_receive_error(), css_receive_heartbeat_request(), css_register_new_server2(), css_return_queued_request(), css_server_connect_part_two(), cub_catgets(), dispatch_thr_f(), get_data_length(), get_server_state_from_master(), hb_cluster_receive_heartbeat(), hb_register_new_process(), hb_resource_receive_changemode(), htonl(), javasp_ping_server(), javasp_status_server(), jsp_alloc_response(), jsp_receive_response(), jsp_send_destroy_request(), load_msgcat(), MCReadCat(), net_arg_get_cache_time(), net_arg_get_cci_object(), net_arg_get_datetimetz(), net_arg_get_int(), net_arg_get_lob_handle(), net_arg_get_object(), net_arg_get_size(), net_arg_get_str(), net_arg_get_timestamptz(), net_arg_get_xid(), net_decode_str(), net_read_header(), net_read_int(), proxy_check_cas_error(), proxy_get_cas_error_code(), proxy_process_cas_register(), receiver_thr_f(), and return_integer_data().

int or_advance ( OR_BUF buf,
int  offset 
)

Definition at line 2368 of file object_representation.c.

References or_buf::endptr, NO_ERROR, or_overflow(), and or_buf::ptr.

Referenced by btree_construct_leafs(), btree_leaf_get_nth_oid_ptr(), btree_read_record_without_decompression(), btree_record_get_num_visible_oids(), btree_sort_get_next(), catcls_convert_attr_id_to_name(), catcls_get_or_value_from_attribute(), catcls_get_or_value_from_attrid(), catcls_get_or_value_from_buffer(), catcls_get_or_value_from_class(), catcls_get_or_value_from_class_record(), catcls_get_or_value_from_method(), catcls_get_or_value_from_method_file(), catcls_get_or_value_from_method_signiture(), catcls_put_or_value_into_buffer(), desc_disk_to_obj(), disk_to_root(), get_current(), get_desc_current(), get_desc_old(), get_old(), heap_midxkey_key_generate(), heap_midxkey_key_get(), la_disk_to_obj(), la_get_current(), log_rv_undoredo_partial_changes_recursive(), mr_data_readmem_bigint(), mr_data_readmem_bit(), mr_data_readmem_char(), mr_data_readmem_date(), mr_data_readmem_datetime(), mr_data_readmem_datetimetz(), mr_data_readmem_double(), mr_data_readmem_elo(), mr_data_readmem_enumeration(), mr_data_readmem_float(), mr_data_readmem_int(), mr_data_readmem_json(), mr_data_readmem_money(), mr_data_readmem_nchar(), mr_data_readmem_numeric(), mr_data_readmem_object(), mr_data_readmem_resultset(), mr_data_readmem_set(), mr_data_readmem_short(), mr_data_readmem_string(), mr_data_readmem_time(), mr_data_readmem_timestamptz(), mr_data_readmem_utime(), mr_data_readmem_varbit(), mr_data_readval_bigint(), mr_data_readval_date(), mr_data_readval_datetime(), mr_data_readval_datetimeltz(), mr_data_readval_datetimetz(), mr_data_readval_double(), mr_data_readval_enumeration(), mr_data_readval_float(), mr_data_readval_int(), mr_data_readval_money(), mr_data_readval_numeric(), mr_data_readval_object(), mr_data_readval_oid(), mr_data_readval_resultset(), mr_data_readval_set(), mr_data_readval_short(), mr_data_readval_time(), mr_data_readval_timestampltz(), mr_data_readval_timestamptz(), mr_data_readval_utime(), mr_data_writeval_set(), mr_index_readval_bigint(), mr_index_readval_date(), mr_index_readval_datetime(), mr_index_readval_datetimeltz(), mr_index_readval_datetimetz(), mr_index_readval_double(), mr_index_readval_enumeration(), mr_index_readval_float(), mr_index_readval_int(), mr_index_readval_midxkey(), mr_index_readval_money(), mr_index_readval_oid(), mr_index_readval_short(), mr_index_readval_time(), mr_index_readval_timestampltz(), mr_index_readval_timestamptz(), mr_index_readval_utime(), mr_readval_bit_internal(), mr_readval_char_internal(), mr_readval_nchar_internal(), mr_readval_string_internal(), mr_readval_varbit_internal(), mr_readval_varnchar_internal(), or_disk_set_size(), or_get_align32(), or_get_align64(), or_get_set(), or_get_value(), or_put_set(), or_skip_set_header(), or_skip_varbit_remainder(), or_skip_varchar_remainder(), or_unpack_mem_value(), peekmem_elo(), pr_midxkey_add_elements(), pr_midxkey_get_element_internal(), pr_midxkey_get_element_offset(), put_substructure_set(), qdata_load_agg_hentry_from_tuple(), qfile_locate_tuple_next_value(), readval_elo_with_type(), and tf_disk_to_mem().

int or_align ( OR_BUF buf,
int  alignment 
)
int or_db_value_size ( DB_VALUE var)

Definition at line 7052 of file object_representation.c.

References or_packed_value_size().

Referenced by or_header_size(), sserial_get_current_value(), sserial_get_next_value(), ssession_get_session_variable(), and xts_sizeof_db_value().

Here is the caller graph for this function:

void or_decode ( const char *  buffer,
char *  dest,
int  size 
)

Definition at line 3869 of file object_representation.c.

Referenced by vid_decode_object().

Here is the caller graph for this function:

int or_disk_set_size ( OR_BUF buf,
TP_DOMAIN set_domain,
DB_TYPE set_type 
)
void or_encode ( char *  buffer,
const char *  source,
int  size 
)

Definition at line 3850 of file object_representation.c.

Referenced by vid_encode_object().

Here is the caller graph for this function:

int or_get_align ( OR_BUF buf,
int  align 
)

Definition at line 723 of file object_representation.c.

References or_buf::endptr, NO_ERROR, or_overflow(), or_buf::ptr, and PTR_ALIGN.

int or_get_align64 ( OR_BUF buf)

Definition at line 702 of file object_representation.c.

References NO_ERROR, or_advance(), or_buf::ptr, and rc.

Referenced by or_pack_mem_value(), and or_unpack_mem_value().

Here is the caller graph for this function:

DB_BIGINT or_get_bigint ( OR_BUF buf,
int *  error 
)
int or_get_byte ( OR_BUF buf,
int *  error 
)

Definition at line 1459 of file object_representation.c.

References or_buf::endptr, NO_ERROR, OR_BYTE_SIZE, OR_GET_BYTE, or_underflow(), and or_buf::ptr.

Referenced by log_rv_undoredo_partial_changes_recursive(), or_get_offset_internal(), and or_get_varbit_length().

Here is the caller graph for this function:

int or_get_date ( OR_BUF buf,
DB_DATE date 
)

Definition at line 1897 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_DATE_SIZE, OR_GET_DATE, or_underflow(), and or_buf::ptr.

Referenced by mr_data_readmem_date(), and mr_data_readval_date().

Here is the caller graph for this function:

int or_get_datetime ( OR_BUF buf,
DB_DATETIME datetime 
)
int or_get_datetimetz ( OR_BUF buf,
DB_DATETIMETZ datetimetz 
)

Definition at line 1989 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_DATETIMETZ_SIZE, OR_GET_DATETIMETZ, or_underflow(), and or_buf::ptr.

Referenced by mr_data_readmem_datetimetz(), and mr_data_readval_datetimetz().

Here is the caller graph for this function:

double or_get_double ( OR_BUF buf,
int *  error 
)
float or_get_float ( OR_BUF buf,
int *  error 
)

Definition at line 1655 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, FLOAT_ALIGNMENT, NO_ERROR, OR_FLOAT_SIZE, OR_GET_FLOAT, or_underflow(), and or_buf::ptr.

Referenced by mr_data_readmem_float(), and mr_data_readval_float().

Here is the caller graph for this function:

int or_get_json_schema ( OR_BUF buf,
REFPTR(char, schema)   
)
int or_get_json_validator ( OR_BUF buf,
REFPTR(JSON_VALIDATOR, validator)   
)

Definition at line 8051 of file object_representation.c.

References assert, ASSERT_ERROR, db_json_load_validator(), db_private_free_and_init, NO_ERROR, NULL, or_get_json_schema(), rc, and strlen.

Referenced by or_get_domain_internal(), and unpack_domain_2().

Here is the caller graph for this function:

int or_get_monetary ( OR_BUF buf,
DB_MONETARY monetary 
)

Definition at line 2078 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_GET_MONETARY, OR_MONETARY_SIZE, or_underflow(), and or_buf::ptr.

Referenced by mr_data_readmem_money(), and mr_data_readval_money().

Here is the caller graph for this function:

int or_get_mvccid ( OR_BUF buf,
MVCCID mvccid 
)
int or_get_offset ( OR_BUF buf,
int *  error 
)

Definition at line 1277 of file object_representation.c.

References BIG_VAR_OFFSET_SIZE, and or_get_offset_internal().

int or_get_offset_internal ( OR_BUF buf,
int *  error,
int  offset_size 
)
int or_get_set_header ( OR_BUF buf,
DB_TYPE set_type,
int *  size,
int *  domain,
int *  bound_bits,
int *  offset_table,
int *  element_tags,
int *  common_sub 
)
int or_get_time ( OR_BUF buf,
DB_TIME timeval 
)

Definition at line 1759 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_GET_TIME, OR_TIME_SIZE, or_underflow(), and or_buf::ptr.

Referenced by mr_data_readmem_time(), and mr_data_readval_time().

Here is the caller graph for this function:

int or_get_timestamptz ( OR_BUF buf,
DB_TIMESTAMPTZ ts_tz 
)
int or_get_utime ( OR_BUF buf,
DB_UTIME timeval 
)
OR_VARINFO* or_get_var_table_internal ( OR_BUF buf,
int  nvars,
char *(*)(int)  allocator,
int  offset_size 
)

Definition at line 2503 of file object_representation.c.

References DB_ALIGN, or_buf::endptr, INT_ALIGNMENT, NULL, or_abort(), or_underflow(), or_unpack_var_table_internal(), and or_buf::ptr.

Referenced by or_get_var_table(), and read_var_table_internal().

Here is the caller graph for this function:

int or_get_varbit_length ( OR_BUF buf,
int *  rc 
)
int or_get_varchar_length ( OR_BUF buf,
int *  rc 
)

Definition at line 1038 of file object_representation.c.

References or_get_varchar_compression_lengths().

Referenced by or_put_varchar_internal(), and or_skip_varchar().

Here is the caller graph for this function:

void or_init ( OR_BUF buf,
char *  data,
int  length 
)

Definition at line 638 of file object_representation.c.

References or_buf::buffer, DB_INT32_MAX, or_buf::endptr, or_buf::error_abort, or_buf::fixups, NULL, OR_INFINITE_POINTER, and or_buf::ptr.

Referenced by bf2df_str_cmpdisk(), btree_check_valid_record(), btree_construct_leafs(), btree_delete_overflow_key(), btree_dump_leaf_record(), btree_dump_root_header(), btree_glean_root_header_info(), btree_key_find_first_visible_row(), btree_leaf_change_first_object(), btree_leaf_get_vpid_for_overflow_oids(), btree_load_overflow_key(), btree_pack_root_header(), btree_read_record_without_decompression(), btree_recompress_record(), btree_record_get_num_visible_oids(), btree_rv_read_keybuf_nocopy(), btree_rv_read_keybuf_two_objects(), btree_rv_save_keyval_for_undo(), btree_rv_save_keyval_for_undo_two_objects(), btree_scan_for_show_index_header(), btree_sort_get_next(), btree_store_overflow_key(), btree_verify_leaf_node(), btree_write_record(), catalog_fetch_btree_statistics(), catcls_convert_attr_id_to_name(), catcls_get_or_value_from_class_record(), catcls_get_or_value_from_record(), catcls_put_or_value_into_record(), cursor_get_first_tuple_value(), cursor_get_oid_from_vobj(), cursor_get_tuple_value_from_list(), desc_disk_to_obj(), desc_obj_to_disk(), eval_sub_sort_list_to_multi_set(), eval_sub_sort_list_to_sort_list(), heap_classrepr_dump(), heap_midxkey_get_value(), heap_midxkey_key_generate(), heap_midxkey_key_get(), la_disk_to_obj(), mr_data_cmpdisk_json(), mr_data_cmpdisk_numeric(), mr_data_cmpdisk_string(), mr_data_cmpdisk_varbit(), mr_data_cmpdisk_varnchar(), mr_index_lengthmem_string(), mr_index_lengthmem_varbit(), or_class_get_partition_info(), or_get_current_representation(), or_get_domain_internal(), or_mvcc_get_header(), or_pack_domain(), or_pack_mem_value(), or_pack_value(), or_unpack_domain(), or_unpack_mem_value(), or_unpack_set(), or_unpack_value(), pr_midxkey_add_elements(), pr_midxkey_get_element_internal(), pr_midxkey_get_element_offset(), qdata_convert_table_to_set(), qdata_finalize_aggregate_list(), qdata_finalize_analytic_func(), qexec_cmp_tpl_vals_merge(), qexec_compare_valptr_with_tuple(), qexec_get_attr_default(), qfile_compare_tuple_values(), qfile_locate_tuple_next_value(), set_tform_disk_set(), stran_can_end_after_query_execution(), tf_attribute_default_expr_to_property(), tf_class_to_disk(), tf_disk_to_class(), tf_disk_to_mem(), tf_mem_to_disk(), vid_decode_object(), vid_pack_db_value(), and xbtree_get_key_type().

int or_method_sig_list_length ( void *  method_sig_list_ptr)
int or_mvcc_get_repid_and_flags ( OR_BUF buf,
int *  error 
)
int or_mvcc_set_repid_and_flags ( OR_BUF buf,
int  mvcc_flag,
int  repid,
int  bound_bit,
int  variable_offset_size 
)

Definition at line 476 of file object_representation.c.

References OR_BOUND_BIT_FLAG, OR_GET_BOUND_BIT, OR_MVCC_FLAG_MASK, OR_MVCC_FLAG_SHIFT_BITS, or_put_int(), and OR_SET_VAR_OFFSET_SIZE.

Referenced by or_mvcc_add_header(), and or_mvcc_set_header().

Here is the caller graph for this function:

char* or_pack_bool_array ( char *  ptr,
const bool bools,
int  size 
)

Definition at line 3700 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_INT_SIZE, and OR_PUT_INT.

char* or_pack_domain ( char *  ptr,
TP_DOMAIN domain,
int  include_classoids,
int  is_null 
)
char* or_pack_double ( char *  ptr,
double  number 
)

Definition at line 2774 of file object_representation.c.

References MAX_ALIGNMENT, OR_DOUBLE_SIZE, OR_PUT_DOUBLE(), and PTR_ALIGN.

Referenced by xts_process_xasl_node().

Here is the caller graph for this function:

char* or_pack_ehid ( char *  ptr,
EHID ehid 
)

Definition at line 3130 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_EHID_SIZE, and OR_PUT_EHID.

char* or_pack_float ( char *  ptr,
float  number 
)

Definition at line 2743 of file object_representation.c.

References ASSERT_ALIGN, FLOAT_ALIGNMENT, OR_FLOAT_SIZE, and OR_PUT_FLOAT().

Referenced by jsp_pack_float_argument(), sboot_register_client(), sysprm_pack_sysprm_value(), and xlogtb_get_pack_tran_table().

Here is the caller graph for this function:

char* or_pack_int ( char *  ptr,
int  number 
)

Definition at line 2554 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_INT_SIZE, and OR_PUT_INT.

Referenced by boot_add_volume_extension(), boot_backup(), boot_change_ha_mode(), boot_check_db_consistency(), boot_compact_classes(), boot_notify_ha_log_applier_state(), boot_unregister_client(), btree_add_index(), btree_find_multi_uniques(), btree_key_insert_new_key(), btree_load_index(), chksum_insert_repl_log_and_demote_table_lock(), csession_create_prepared_statement(), csession_drop_session_variables(), csession_end_session(), csession_find_or_create_session(), csession_get_last_insert_id(), csession_get_prepared_statement(), csession_set_row_count(), csession_set_session_variables(), db_pack_prepare_info(), disk_get_free_numpages(), disk_get_fullname(), disk_get_remarks(), disk_get_total_numpages(), hb_cluster_send_heartbeat_internal(), heap_create(), heap_get_class_num_objects_pages(), heap_has_instance(), javasp_ping_server(), javasp_status_server(), jsp_pack_argument(), jsp_pack_bigint_argument(), jsp_pack_date_argument(), jsp_pack_datetime_argument(), jsp_pack_double_argument(), jsp_pack_float_argument(), jsp_pack_int_argument(), jsp_pack_monetary_argument(), jsp_pack_null_argument(), jsp_pack_object_argument(), jsp_pack_set_argument(), jsp_pack_short_argument(), jsp_pack_time_argument(), jsp_pack_timestamp_argument(), jsp_send_call_request(), jsp_send_destroy_request(), locator_assign_oid(), locator_assign_oid_batch(), locator_check_fk_validity(), locator_does_exist(), locator_fetch(), locator_fetch_all(), locator_fetch_all_reference_lockset(), locator_fetch_lockhint_classes(), locator_fetch_lockset(), locator_find_lockhint_class_oids(), locator_force(), locator_get_class(), locator_pack_copy_area_descriptor(), locator_pack_lockhint_classes(), locator_pack_lockhint_header(), locator_pack_lockset_classes(), locator_pack_lockset_header(), locator_pack_lockset_objects(), locator_pack_oid_set(), locator_redistribute_partition_data(), locator_repl_add_error_to_copyarea(), locator_repl_force(), locator_reserve_class_names(), locator_upgrade_instances_domain(), log_reset_isolation(), log_reset_wait_msecs(), log_set_interrupt(), log_set_suppress_repl_on_transaction(), logtb_get_pack_tran_table(), logwr_get_log_pages(), method_send_eof_to_server(), method_send_error_to_server(), method_send_value_to_server(), net_client_logwr_send_end_msg(), net_client_ping_server(), net_client_ping_server_with_handshake(), net_client_request_recv_stream(), net_client_request_with_callback(), netcl_spacedb(), netsr_spacedb(), or_header_size(), or_pack_method_sig(), or_pack_method_sig_list(), or_pack_query_format(), or_pack_recdes(), or_pack_spacedb(), qfile_get_list_file_page(), qmgr_drop_all_query_plans(), qmgr_end_query(), qmgr_execute_query(), qmgr_free_list_temp_file(), qmgr_prepare_and_execute_query(), qmgr_prepare_query(), qp_get_server_info(), repl_set_info(), sacl_dump(), sboot_add_volume_extension(), sboot_backup(), sboot_change_ha_mode(), sboot_check_db_consistency(), sboot_compact_db(), sboot_compact_start(), sboot_compact_stop(), sboot_find_last_permanent(), sboot_find_last_temp(), sboot_find_number_permanent_volumes(), sboot_find_number_temp_volumes(), sboot_get_locales_info(), sboot_get_timezone_checksum(), sboot_heap_compact(), sboot_notify_ha_log_applier_state(), sboot_notify_unregister_client(), sboot_register_client(), sbtree_add_index(), sbtree_class_test_unique(), sbtree_delete_index(), sbtree_find_multi_uniques(), sbtree_find_unique_internal(), sbtree_get_key_type(), sbtree_get_statistics(), sbtree_load_index(), schksum_insert_repl_log_and_demote_table_lock(), sct_check_rep_dir(), sdk_freepgs(), sdk_remarks(), sdk_totalpgs(), sdk_vlabel(), serial_get_current_value(), serial_get_next_value(), server_ping(), server_ping_with_handshake(), ses_posix_copy_file(), ses_posix_create_file(), ses_posix_delete_file(), ses_posix_rename_file(), JSON_SERIALIZER::SetSizePointers(), shf_get_class_num_objs_and_pages(), shf_has_instance(), sjsp_get_server_port(), sloaddb_destroy(), sloaddb_fetch_status(), sloaddb_init(), sloaddb_install_class(), sloaddb_load_batch(), sloaddb_update_stats(), slocator_assign_oid(), slocator_assign_oid_batch(), slocator_check_fk_validity(), slocator_delete_class_name(), slocator_demote_class_lock(), slocator_does_exist(), slocator_fetch(), slocator_fetch_all(), slocator_fetch_all_reference_lockset(), slocator_fetch_lockhint_classes(), slocator_fetch_lockset(), slocator_find_class_oid(), slocator_find_lockhint_class_oids(), slocator_force(), slocator_get_class(), slocator_notify_isolation_incons(), slocator_redistribute_partition_data(), slocator_remove_class_from_index(), slocator_rename_class_name(), slocator_repl_force(), slocator_reserve_classnames(), slocator_upgrade_instances_domain(), slock_dump(), slog_add_lob_locator(), slog_change_state_of_locator(), slog_checkpoint(), slog_drop_lob_locator(), slog_find_lob_locator(), slogin_user(), slogpb_dump_stat(), slogtb_does_active_user_exist(), slogtb_dump_trantable(), slogtb_get_mvcc_snapshot(), slogtb_get_pack_tran_table(), slogtb_reset_isolation(), slogtb_reset_wait_msecs(), slogtb_set_suppress_repl_on_transaction(), slogwr_get_log_pages(), smnt_server_start_stats(), smnt_server_stop_stats(), sprm_server_change_parameters(), sprm_server_dump_parameters(), sprm_server_get_force_parameters(), sprm_server_obtain_parameters(), sqfile_get_list_file_page(), sqmgr_drop_all_query_plans(), sqmgr_dump_query_cache(), sqmgr_dump_query_plans(), sqmgr_end_query(), sqmgr_execute_query(), sqmgr_prepare_and_execute_query(), sqmgr_prepare_query(), sqp_get_server_info(), sqst_server_get_statistics(), srepl_set_info(), sserial_decache(), sserial_get_current_value(), sserial_get_next_value(), ssession_create_prepared_statement(), ssession_delete_prepared_statement(), ssession_drop_session_variables(), ssession_end_session(), ssession_find_or_create_session(), ssession_get_last_insert_id(), ssession_get_prepared_statement(), ssession_get_row_count(), ssession_get_session_variable(), ssession_reset_cur_insert_id(), ssession_set_row_count(), ssession_set_session_variables(), stats_get_statistics_from_server(), stats_update_all_statistics(), stats_update_statistics(), stde_get_data_keys(), stde_get_mk_file_path(), stde_get_mk_info(), sthread_dump_cs_stat(), sthread_kill_or_interrupt_tran(), sthread_kill_tran_index(), stran_get_local_transaction_id(), stran_is_blocked(), stran_lock_rep_read(), stran_server_2pc_attach_global_tran(), stran_server_2pc_prepare(), stran_server_2pc_prepare_global_tran(), stran_server_2pc_recovery_prepared(), stran_server_2pc_start(), stran_server_abort(), stran_server_commit(), stran_server_end_topop(), stran_server_get_global_tran_info(), stran_server_has_updated(), stran_server_is_active_and_has_updated(), stran_server_partial_abort(), stran_server_savepoint(), stran_server_set_global_tran_info(), stran_server_start_topop(), stran_wait_server_active_trans(), svacuum(), svacuum_dump(), sysprm_pack_assign_values(), sysprm_pack_session_parameters(), sysprm_pack_sysprm_value(), tde_change_mk_on_server(), thread_kill_or_interrupt_tran(), thread_kill_tran_index(), tran_is_blocked(), tran_lock_rep_read(), tran_server_2pc_attach_global_tran(), tran_server_2pc_prepare_global_tran(), tran_server_2pc_recovery_prepared(), tran_server_commit(), tran_server_get_global_tran_info(), tran_server_set_global_tran_info(), xcallback_console_print(), xio_send_user_prompt_to_client(), xlog_send_log_pages_to_client(), xlogtb_get_pack_tran_table(), xs_send_action_to_client(), xs_send_method_call_info_to_client(), xts_map_filter_pred_to_stream(), xts_map_func_pred_to_stream(), xts_map_xasl_to_stream(), xts_pack_regu_variable_value(), xts_process(), xts_process_access_spec_type(), xts_process_aggregate_type(), xts_process_alsm_eval_term(), xts_process_analytic_eval_type(), xts_process_analytic_type(), xts_process_arith_type(), xts_process_attr_descr(), xts_process_buildlist_proc(), xts_process_buildvalue_proc(), xts_process_cache_attrinfo(), xts_process_cls_spec_type(), xts_process_comp_eval_term(), xts_process_connectby_proc(), xts_process_cte_proc(), xts_process_delete_proc(), xts_process_eval_term(), xts_process_fetch_proc(), xts_process_filter_pred_node(), xts_process_func_pred(), xts_process_function_type(), xts_process_indx_info(), xts_process_insert_proc(), xts_process_json_table_column_behavior(), xts_process_key_info(), xts_process_like_eval_term(), xts_process_list_spec_type(), xts_process_ls_merge_info(), xts_process_merge_proc(), xts_process_mergelist_proc(), xts_process_method_sig(), xts_process_method_sig_list(), xts_process_method_spec_type(), xts_process_outptr_list(), xts_process_pos_descr(), xts_process_pred(), xts_process_pred_expr(), xts_process_regu_value_list(), xts_process_regu_variable(), xts_process_regu_variable_list(), xts_process_rlike_eval_term(), xts_process_selupd_list(), xts_process_set_spec_type(), xts_process_showstmt_spec_type(), xts_process_sort_list(), xts_process_srlist_id(), xts_process_union_proc(), xts_process_update_proc(), xts_process_val_list(), xts_process_xasl_node(), xts_save_int_array(), xts_save_odku_info(), xts_save_update_assignment(), and xts_save_upddel_class_info().

char* or_pack_log_lsa ( const char *  ptr,
const log_lsa lsa 
)
char* or_pack_mem_value ( char *  ptr,
DB_VALUE value,
int *  packed_len_except_alignment 
)
static char * or_pack_method_sig ( char *  ptr,
void *  method_sig_ptr 
)
static
char* or_pack_method_sig_list ( char *  ptr,
void *  method_sig_list_ptr 
)

Definition at line 6938 of file object_representation.c.

References assert, i, method_sig_list::method_sig, method_sig_node::next, method_sig_list::num_methods, or_pack_int(), and or_pack_method_sig().

Referenced by xs_send_method_call_info_to_client().

Here is the caller graph for this function:

char* or_pack_mvccid ( char *  ptr,
const MVCCID  mvccid 
)

Definition at line 7582 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_MVCCID_SIZE, and OR_PUT_MVCCID.

Referenced by btree_pack_mvccinfo(), btree_rv_save_keyval_for_undo_two_objects(), and heap_mvcc_log_delete().

Here is the caller graph for this function:

char* or_pack_oid ( char *  ptr,
const OID oid 
)

Definition at line 2961 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_OID_SIZE, OR_PUT_NULL_OID, and OR_PUT_OID.

Referenced by boot_check_db_consistency(), boot_compact_classes(), boot_heap_compact(), btree_add_index(), btree_find_multi_uniques(), btree_find_unique(), btree_load_index(), btree_rv_save_keyval_for_undo_two_objects(), catalog_check_rep_dir(), chksum_insert_repl_log_and_demote_table_lock(), file_apply_tde_to_class_files(), heap_create(), heap_destroy_newly_created(), heap_has_instance(), locator_assign_oid(), locator_check_fk_validity(), locator_demote_class_lock(), locator_does_exist(), locator_fetch(), locator_fetch_all(), locator_fetch_all_reference_lockset(), locator_find_class_oid(), locator_find_lockhint_class_oids(), locator_get_class(), locator_pack_copy_area_descriptor(), locator_pack_lockhint_classes(), locator_pack_lockset_classes(), locator_pack_lockset_objects(), locator_pack_oid_set(), locator_redistribute_partition_data(), locator_remove_class_from_index(), locator_rename_class_name(), locator_reserve_class_names(), locator_upgrade_instances_domain(), or_pack_oid_array(), sboot_compact_db(), sboot_register_client(), sbtree_find_multi_uniques(), sbtree_find_unique_internal(), sct_check_rep_dir(), serial_decache(), serial_get_current_value(), serial_get_next_value(), slocator_assign_oid(), slocator_does_exist(), slocator_fetch_all(), slocator_find_class_oid(), slocator_get_class(), slocator_get_reserved_class_name_oid(), stats_get_statistics_from_server(), stats_update_statistics(), xts_map_xasl_to_stream(), xts_process_cls_spec_type(), xts_process_insert_proc(), xts_process_selupd_list(), and xts_save_oid_array().

char* or_pack_oid_array ( char *  ptr,
int  n,
const OID oids 
)

Definition at line 2985 of file object_representation.c.

References assert, ASSERT_ALIGN, i, INT_ALIGNMENT, NULL, and or_pack_oid().

char* or_pack_ptr ( char *  ptr,
UINTPTR  ptrval 
)
char* or_pack_recdes ( char *  buf,
RECDES recdes 
)
char* or_pack_sha1 ( char *  ptr,
const SHA1Hash sha1 
)

Definition at line 7618 of file object_representation.c.

References assert, ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_PUT_SHA1, and OR_SHA1_SIZE.

Referenced by csession_create_prepared_statement(), and qmgr_prepare_query().

Here is the caller graph for this function:

char* or_pack_short ( char *  ptr,
short  number 
)

Definition at line 2652 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_INT_SIZE, and OR_PUT_INT.

Referenced by jsp_pack_object_argument(), jsp_pack_short_argument(), and or_pack_recdes().

Here is the caller graph for this function:

char* or_pack_spacedb ( char *  ptr,
const SPACEDB_ALL all,
const SPACEDB_ONEVOL vols,
const SPACEDB_FILES files 
)

Definition at line 7879 of file object_representation.c.

References i, NULL, spacedb_all::nvols, or_pack_int(), or_pack_string(), SPACEDB_ALL_COUNT, SPACEDB_FILE_COUNT, and SPACEDB_TOTAL_ALL.

Referenced by netsr_spacedb().

Here is the caller graph for this function:

char* or_pack_stream ( char *  ptr,
const char *  stream,
size_t  len 
)
char* or_pack_string_with_null_padding ( char *  ptr,
const char *  string,
size_t  len 
)

Definition at line 3356 of file object_representation.c.

References OR_INT_SIZE, and or_pack_stream().

int or_packed_bool_array_length ( const bool bools,
int  size 
)

Definition at line 3785 of file object_representation.c.

References NULL, and OR_INT_SIZE.

static int or_packed_json_schema_length ( const char *  json_schema)
static

Definition at line 3635 of file object_representation.c.

References db_make_string(), pr_type::get_disk_size_of_value(), pr_clear_value(), and tp_String.

Referenced by or_packed_json_validator_length().

Here is the caller graph for this function:

static int or_packed_json_validator_length ( JSON_VALIDATOR json_validator)
static

Definition at line 3654 of file object_representation.c.

References db_json_get_schema_raw_from_validator(), NULL, and or_packed_json_schema_length().

Referenced by or_packed_domain_size().

Here is the caller graph for this function:

int or_packed_put_varbit ( OR_BUF buf,
const char *  string,
int  bitlen 
)

Definition at line 1161 of file object_representation.c.

References INT_ALIGNMENT, and or_put_varbit_internal().

Referenced by mr_data_writemem_varbit(), and mr_writeval_varbit_internal().

Here is the caller graph for this function:

int or_packed_put_varchar ( OR_BUF buf,
char *  string,
int  charlen 
)

Definition at line 823 of file object_representation.c.

References INT_ALIGNMENT, and or_put_varchar_internal().

Referenced by mr_data_writemem_string(), mr_data_writemem_varnchar(), and mr_writeval_varnchar_internal().

Here is the caller graph for this function:

int or_packed_recdesc_length ( int  length)

Definition at line 764 of file object_representation.c.

References OR_INT_SIZE, and or_packed_stream_length().

void or_packed_set_info ( DB_TYPE  set_type,
TP_DOMAIN domain,
int  include_domain,
int *  bound_bits,
int *  offset_table,
int *  element_tags,
int *  element_size 
)

Definition at line 5248 of file object_representation.c.

References tp_domain::next, NULL, tp_domain::setdomain, and tp_domain_disk_size().

Referenced by or_packed_set_length(), and or_put_set().

Here is the caller graph for this function:

int or_packed_spacedb_size ( const SPACEDB_ALL all,
const SPACEDB_ONEVOL vols,
const SPACEDB_FILES files 
)

Definition at line 7838 of file object_representation.c.

References i, NULL, spacedb_all::nvols, OR_INT_SIZE, or_packed_string_length(), SPACEDB_ALL_COUNT, SPACEDB_FILE_COUNT, and SPACEDB_TOTAL_ALL.

Referenced by netsr_spacedb().

Here is the caller graph for this function:

int or_packed_stream_length ( size_t  len)
int or_packed_varbit_length ( int  bitlen)

Definition at line 1111 of file object_representation.c.

References INT_ALIGNMENT, and or_varbit_length_internal().

Referenced by mr_data_lengthmem_varbit(), and mr_lengthval_varbit_internal().

Here is the caller graph for this function:

int or_packed_varchar_length ( int  charlen)
int or_put_align32 ( OR_BUF buf)
int or_put_date ( OR_BUF buf,
DB_DATE date 
)

Definition at line 1874 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_DATE_SIZE, or_overflow(), OR_PUT_DATE, and or_buf::ptr.

Referenced by mr_data_writemem_date(), and mr_data_writeval_date().

Here is the caller graph for this function:

int or_put_datetime ( OR_BUF buf,
DB_DATETIME datetimeval 
)

Definition at line 1920 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_DATETIME_SIZE, or_overflow(), OR_PUT_DATETIME, and or_buf::ptr.

Referenced by mr_data_writemem_datetime(), and mr_data_writeval_datetime().

Here is the caller graph for this function:

int or_put_datetimetz ( OR_BUF buf,
DB_DATETIMETZ datetimetz 
)

Definition at line 1966 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, OR_DATETIMETZ_SIZE, or_overflow(), OR_PUT_DATETIMETZ, and or_buf::ptr.

Referenced by mr_data_writemem_datetimetz(), and mr_data_writeval_datetimetz().

Here is the caller graph for this function:

int or_put_domain ( OR_BUF buf,
TP_DOMAIN domain,
int  include_classoids,
int  is_null 
)

Definition at line 4064 of file object_representation.c.

References assert, tp_domain::built_in_index, tp_domain::class_oid, tp_domain::codeset, tp_domain::collation_flag, tp_domain::collation_id, DB_DEFAULT_SCALE, DB_MAX_NUMERIC_PRECISION, DB_MAX_VARBIT_PRECISION, DB_MAX_VARCHAR_PRECISION, DB_MAX_VARNCHAR_PRECISION, DB_TYPE_BIT, DB_TYPE_CHAR, DB_TYPE_ENUMERATION, DB_TYPE_JSON, DB_TYPE_MIDXKEY, DB_TYPE_MULTISET, DB_TYPE_NCHAR, DB_TYPE_NULL, DB_TYPE_NUMERIC, DB_TYPE_OBJECT, DB_TYPE_OID, DB_TYPE_SEQUENCE, DB_TYPE_SET, DB_TYPE_TABLE, DB_TYPE_VARBIT, DB_TYPE_VARCHAR, DB_TYPE_VARNCHAR, DOM_GET_ENUM_ELEMENTS, DOM_GET_ENUMERATION, tp_domain::is_desc, tp_domain::json_validator, LANG_COLL_ISO_BINARY, tp_domain::next, NO_ERROR, NULL, OR_DOMAIN_BUILTIN_FLAG, OR_DOMAIN_CLASS_OID_FLAG, OR_DOMAIN_CODSET_SHIFT, OR_DOMAIN_COLL_ENFORCE_FLAG, OR_DOMAIN_COLL_LEAVE_FLAG, OR_DOMAIN_DESC_FLAG, OR_DOMAIN_ENUM_COLL_FLAG, OR_DOMAIN_ENUMERATION_FLAG, OR_DOMAIN_NEXT_FLAG, OR_DOMAIN_NULL_FLAG, OR_DOMAIN_PRECISION_MAX, OR_DOMAIN_PRECISION_SHIFT, OR_DOMAIN_SCALE_MAX, OR_DOMAIN_SCALE_SHIFT, OR_DOMAIN_SCHEMA_FLAG, OR_DOMAIN_SET_DOMAIN_FLAG, OR_DOMAIN_TYPE_MASK, or_put_enumeration(), or_put_int(), or_put_json_validator(), or_put_oid(), tp_domain::precision, rc, tp_domain::scale, tp_domain::setdomain, TP_DOMAIN_COLL_ENFORCE, TP_DOMAIN_COLL_LEAVE, tp_domain_size(), TP_DOMAIN_TYPE, and TP_FLOATING_PRECISION_VALUE.

Referenced by btree_pack_root_header(), or_pack_domain(), or_pack_mem_value(), or_put_set(), or_put_value(), and put_object_set().

Here is the caller graph for this function:

int or_put_double ( OR_BUF buf,
double  dnum 
)
int or_put_float ( OR_BUF buf,
float  fnum 
)

Definition at line 1632 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, FLOAT_ALIGNMENT, NO_ERROR, OR_FLOAT_SIZE, or_overflow(), OR_PUT_FLOAT(), and or_buf::ptr.

Referenced by mr_data_writemem_float(), and mr_data_writeval_float().

Here is the caller graph for this function:

int or_put_json_schema ( OR_BUF buf,
const char *  schema 
)

Definition at line 8123 of file object_representation.c.

References ASSERT_ALIGN, pr_type::data_writeval(), db_make_string(), INT_ALIGNMENT, NO_ERROR, NULL, pr_clear_value(), or_buf::ptr, rc, and tp_String.

Referenced by or_put_json_validator().

Here is the caller graph for this function:

int or_put_json_validator ( OR_BUF buf,
JSON_VALIDATOR validator 
)

Definition at line 8090 of file object_representation.c.

References db_json_get_schema_raw_from_validator(), and or_put_json_schema().

Referenced by or_put_domain().

Here is the caller graph for this function:

int or_put_mvccid ( OR_BUF buf,
MVCCID  mvccid 
)
int or_put_offset_internal ( OR_BUF buf,
int  num,
int  offset_size 
)

Definition at line 1258 of file object_representation.c.

References assert, BIG_VAR_OFFSET_SIZE, OR_BYTE_SIZE, or_put_byte(), or_put_int(), or_put_short(), and OR_SHORT_SIZE.

Referenced by heap_attrinfo_transform_to_disk_internal(), or_put_offset(), and put_varinfo().

Here is the caller graph for this function:

int or_put_set_header ( OR_BUF buf,
DB_TYPE  set_type,
int  size,
int  domain,
int  bound_bits,
int  offset_table,
int  element_tags,
int  common_sub_header 
)
int or_put_string_aligned ( OR_BUF buf,
char *  str 
)

Definition at line 2214 of file object_representation.c.

References db_binary::data, db_binary::length, NO_ERROR, NULL, OR_BINARY_MAX_LENGTH, OR_BINARY_PAD_SHIFT, OR_INT_SIZE, or_pad(), or_put_data(), or_put_int(), rc, and strlen.

Referenced by mr_data_writemem_elo().

Here is the caller graph for this function:

int or_put_string_aligned_with_length ( OR_BUF buf,
const char *  str 
)

Definition at line 8009 of file object_representation.c.

References NO_ERROR, NULL, or_align(), OR_INT_SIZE, or_put_data(), or_put_int(), rc, and strlen.

Referenced by JSON_SERIALIZER::PackString().

Here is the caller graph for this function:

int or_put_sub_domain ( OR_BUF buf)

Definition at line 5215 of file object_representation.c.

References DB_TYPE_SUB, OR_DOMAIN_TYPE_MASK, and or_put_int().

Referenced by put_substructure_set().

Here is the caller graph for this function:

int or_put_time ( OR_BUF buf,
DB_TIME timeval 
)

Definition at line 1736 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, or_overflow(), OR_PUT_TIME, OR_TIME_SIZE, and or_buf::ptr.

Referenced by mr_data_writemem_time(), and mr_data_writeval_time().

Here is the caller graph for this function:

int or_put_timestamptz ( OR_BUF buf,
DB_TIMESTAMPTZ ts_tz 
)
int or_put_utime ( OR_BUF buf,
DB_UTIME timeval 
)

Definition at line 1782 of file object_representation.c.

References ASSERT_ALIGN, or_buf::endptr, INT_ALIGNMENT, NO_ERROR, or_overflow(), OR_PUT_UTIME, OR_UTIME_SIZE, and or_buf::ptr.

Referenced by mr_data_writemem_utime(), and mr_data_writeval_utime().

Here is the caller graph for this function:

int or_put_value ( OR_BUF buf,
DB_VALUE value,
int  collapse_null,
int  include_domain,
int  include_domain_classoids 
)
int or_put_varbit ( OR_BUF buf,
const char *  string,
int  bitlen 
)

Definition at line 1174 of file object_representation.c.

References CHAR_ALIGNMENT, and or_put_varbit_internal().

Referenced by mr_writeval_varbit_internal().

Here is the caller graph for this function:

static int or_put_varbit_internal ( OR_BUF buf,
const char *  string,
int  bitlen,
int  align 
)
static
int or_put_varchar ( OR_BUF buf,
char *  string,
int  charlen 
)

Definition at line 810 of file object_representation.c.

References CHAR_ALIGNMENT, and or_put_varchar_internal().

Referenced by mr_writeval_varnchar_internal().

Here is the caller graph for this function:

int or_replace_chn ( RECDES record,
int  chn 
)

Definition at line 422 of file object_representation.c.

References recdes::area_size, or_buf::buffer, recdes::data, error(), OR_BUF_INIT, OR_CHN_OFFSET, or_put_int(), and or_buf::ptr.

Referenced by locator_repl_prepare_force().

Here is the caller graph for this function:

int or_skip_varbit ( OR_BUF buf,
int  align 
)

Definition at line 1410 of file object_representation.c.

References NO_ERROR, or_get_varbit_length(), or_skip_varbit_remainder(), and rc.

Referenced by mr_readval_varbit_internal().

Here is the caller graph for this function:

int or_skip_varbit_remainder ( OR_BUF buf,
int  bitlen,
int  align 
)

Definition at line 1391 of file object_representation.c.

References BITS_TO_BYTES, INT_ALIGNMENT, NO_ERROR, or_advance(), or_get_align32(), and rc.

Referenced by mr_readval_varbit_internal(), and or_skip_varbit().

Here is the caller graph for this function:

int or_skip_varchar ( OR_BUF buf,
int  align 
)

Definition at line 1091 of file object_representation.c.

References NO_ERROR, or_get_varchar_length(), or_skip_varchar_remainder(), and rc.

Referenced by mr_readval_string_internal(), and mr_readval_varnchar_internal().

Here is the caller graph for this function:

int or_skip_varchar_remainder ( OR_BUF buf,
int  charlen,
int  align 
)

Definition at line 1064 of file object_representation.c.

References INT_ALIGNMENT, NO_ERROR, or_advance(), or_get_align32(), and rc.

Referenced by mr_readval_string_internal(), mr_readval_varnchar_internal(), and or_skip_varchar().

Here is the caller graph for this function:

char* or_unpack_bool_array ( char *  ptr,
bool **  bools 
)
char* or_unpack_double ( char *  ptr,
double *  number 
)
char* or_unpack_ehid ( char *  ptr,
EHID ehid 
)

Definition at line 3155 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_EHID_SIZE, and OR_GET_EHID.

char* or_unpack_float ( char *  ptr,
float *  number 
)

Definition at line 2758 of file object_representation.c.

References ASSERT_ALIGN, FLOAT_ALIGNMENT, OR_FLOAT_SIZE, and OR_GET_FLOAT.

Referenced by boot_register_client(), jsp_unpack_float_value(), logtb_get_trans_info(), and sysprm_unpack_sysprm_value().

Here is the caller graph for this function:

char* or_unpack_hfid_array ( char *  ptr,
int  n,
HFID **  hfids 
)

Definition at line 3100 of file object_representation.c.

References ASSERT_ALIGN, db_private_alloc, i, INT_ALIGNMENT, NULL, OR_GET_HFID, and OR_HFID_SIZE.

Referenced by sbtree_load_index().

Here is the caller graph for this function:

char* or_unpack_int ( char *  ptr,
int *  number 
)

Definition at line 2574 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_GET_INT, OR_INT_SIZE, or_pack_int64(), and or_unpack_int64().

Referenced by boot_add_volume_extension(), boot_backup(), boot_change_ha_mode(), boot_check_db_consistency(), boot_compact_classes(), boot_find_last_permanent(), boot_find_last_temp(), boot_find_number_permanent_volumes(), boot_find_number_temp_volumes(), boot_get_server_locales(), boot_get_server_timezone_checksum(), boot_heap_compact(), boot_notify_ha_log_applier_state(), boot_register_client(), boot_unregister_client(), btree_add_index(), btree_class_test_unique(), btree_delete_index(), btree_find_multi_uniques(), btree_find_unique(), btree_get_index_key_type(), btree_get_statistics(), btree_load_index(), btree_rv_record_modify_internal(), catalog_check_rep_dir(), chksum_insert_repl_log_and_demote_table_lock(), clogin_user(), compact_db_start(), compact_db_stop(), csession_create_prepared_statement(), csession_delete_prepared_statement(), csession_drop_session_variables(), csession_find_or_create_session(), csession_get_last_insert_id(), csession_get_prepared_statement(), csession_get_row_count(), csession_get_variable(), csession_reset_cur_insert_id(), csession_set_row_count(), csession_set_session_variables(), cvacuum(), db_local_transaction_id(), db_unpack_prepare_info(), disk_get_free_numpages(), disk_get_fullname(), disk_get_remarks(), disk_get_total_numpages(), es_posix_copy_file(), es_posix_create_file(), es_posix_delete_file(), es_posix_rename_file(), file_apply_tde_to_class_files(), fileio_request_user_response(), hb_cluster_receive_heartbeat(), heap_get_class_num_objects_pages(), heap_has_instance(), javasp_status_server(), jsp_get_server_port(), jsp_receive_response(), jsp_unpack_int_value(), jsp_unpack_object_value(), jsp_unpack_resultset(), jsp_unpack_set_value(), jsp_unpack_value(), la_make_repl_item(), loaddb_destroy(), loaddb_fetch_status(), loaddb_init(), loaddb_install_class(), loaddb_load_batch(), loaddb_update_stats(), locator_allocate_and_unpack_lockhint(), locator_allocate_and_unpack_lockset(), locator_assign_oid(), locator_assign_oid_batch(), locator_check_fk_validity(), locator_delete_class_name(), locator_demote_class_lock(), locator_does_exist(), locator_fetch(), locator_fetch_all(), locator_fetch_all_reference_lockset(), locator_fetch_lockhint_classes(), locator_fetch_lockset(), locator_find_class_oid(), locator_find_lockhint_class_oids(), locator_force(), locator_get_class(), locator_notify_isolation_incons(), locator_redistribute_partition_data(), locator_remove_class_from_index(), locator_rename_class_name(), locator_repl_force(), locator_reserve_class_names(), locator_unpack_copy_area_descriptor(), locator_unpack_lockhint_classes(), locator_unpack_lockhint_header(), locator_unpack_lockset_classes(), locator_unpack_lockset_header(), locator_unpack_lockset_objects(), locator_unpack_oid_set_to_exist(), locator_unpack_oid_set_to_new(), locator_upgrade_instances_domain(), log_does_active_user_exist(), log_get_mvcc_snapshot(), log_repl_schema_dump(), log_reset_isolation(), log_reset_wait_msecs(), log_set_suppress_repl_on_transaction(), logtb_get_pack_tran_table(), logtb_get_trans_info(), method_clear_scan_buffer(), net_client_check_log_header(), net_client_ping_server(), net_client_ping_server_with_handshake(), net_client_receive_action(), net_client_recv_copyarea(), net_client_request2(), net_client_request2_no_malloc(), net_client_request_2recv_copyarea(), net_client_request_3_data(), net_client_request_3_data_recv_copyarea(), net_client_request_3recv_copyarea(), net_client_request_recv_copyarea(), net_client_request_recv_stream(), net_client_request_with_callback(), net_client_request_with_logwr_context(), netcl_spacedb(), netsr_spacedb(), or_header_size(), or_unpack_int_array(), or_unpack_method_sig(), or_unpack_method_sig_list(), or_unpack_query_format(), or_unpack_recdes(), or_unpack_spacedb(), perfmon_server_start_stats(), qfile_get_list_file_page(), qmgr_drop_all_query_plans(), qmgr_end_query(), qmgr_execute_query(), qmgr_prepare_and_execute_query(), qmgr_prepare_query(), qp_get_server_info(), repl_set_info(), sacl_dump(), sboot_add_volume_extension(), sboot_backup(), sboot_change_ha_mode(), sboot_check_db_consistency(), sboot_compact_db(), sboot_notify_ha_log_applier_state(), sboot_notify_unregister_client(), sbtree_add_index(), sbtree_find_multi_uniques(), sbtree_load_index(), schksum_insert_repl_log_and_demote_table_lock(), sdk_freepgs(), sdk_remarks(), sdk_totalpgs(), sdk_vlabel(), serial_decache(), serial_get_current_value(), serial_get_next_value(), server_ping(), server_ping_with_handshake(), shf_create(), shf_get_class_num_objs_and_pages(), shf_has_instance(), slocator_assign_oid(), slocator_check_fk_validity(), slocator_does_exist(), slocator_fetch(), slocator_fetch_all(), slocator_fetch_all_reference_lockset(), slocator_fetch_lockhint_classes(), slocator_fetch_lockset(), slocator_find_lockhint_class_oids(), slocator_force(), slocator_get_class(), slocator_redistribute_partition_data(), slocator_repl_force(), slocator_reserve_classnames(), slocator_upgrade_instances_domain(), slock_dump(), slog_add_lob_locator(), slog_change_state_of_locator(), slogpb_dump_stat(), slogtb_dump_trantable(), slogtb_get_pack_tran_table(), slogtb_reset_isolation(), slogtb_reset_wait_msecs(), slogtb_set_interrupt(), slogtb_set_suppress_repl_on_transaction(), slogwr_get_log_pages(), sprm_server_dump_parameters(), sqfile_get_list_file_page(), sqmgr_dump_query_cache(), sqmgr_dump_query_plans(), sqmgr_end_query(), sqmgr_execute_query(), sqmgr_prepare_and_execute_query(), sqmgr_prepare_query(), sqp_get_server_info(), sqst_server_get_statistics(), sqst_update_all_statistics(), sqst_update_statistics(), srepl_set_info(), sserial_get_current_value(), sserial_get_next_value(), ssession_create_prepared_statement(), ssession_drop_session_variables(), ssession_end_session(), ssession_find_or_create_session(), ssession_get_last_insert_id(), ssession_get_prepared_statement(), ssession_set_row_count(), ssession_set_session_variables(), stats_get_statistics_from_server(), stde_change_mk_on_server(), sthread_dump_cs_stat(), sthread_kill_or_interrupt_tran(), sthread_kill_tran_index(), stran_is_blocked(), stran_lock_rep_read(), stran_server_2pc_attach_global_tran(), stran_server_2pc_prepare_global_tran(), stran_server_2pc_recovery_prepared(), stran_server_commit(), stran_server_end_topop(), stran_server_get_global_tran_info(), stran_server_set_global_tran_info(), stx_build(), stx_build_access_spec_type(), stx_build_aggregate_type(), stx_build_alsm_eval_term(), stx_build_analytic_eval_type(), stx_build_analytic_type(), stx_build_arith_type(), stx_build_attr_descr(), stx_build_buildlist_proc(), stx_build_buildvalue_proc(), stx_build_cache_attrinfo(), stx_build_cls_spec_type(), stx_build_comp_eval_term(), stx_build_connectby_proc(), stx_build_cte_proc(), stx_build_delete_proc(), stx_build_eval_term(), stx_build_fetch_proc(), stx_build_filter_pred_node(), stx_build_func_pred(), stx_build_function_type(), stx_build_indx_info(), stx_build_insert_proc(), stx_build_key_info(), stx_build_like_eval_term(), stx_build_list_spec_type(), stx_build_ls_merge_info(), stx_build_merge_proc(), stx_build_mergelist_proc(), stx_build_method_sig(), stx_build_method_sig_list(), stx_build_method_spec_type(), stx_build_outptr_list(), stx_build_pos_descr(), stx_build_pred(), stx_build_pred_expr(), stx_build_regu_value_list(), stx_build_regu_variable(), stx_build_regu_variable_list(), stx_build_rlike_eval_term(), stx_build_selupd_list(), stx_build_set_spec_type(), stx_build_showstmt_spec_type(), stx_build_sort_list(), stx_build_srlist_id(), stx_build_string(), stx_build_union_proc(), stx_build_update_assignment(), stx_build_update_class_info(), stx_build_update_proc(), stx_build_val_list(), stx_build_xasl_node(), stx_init_regu_variable(), stx_map_stream_to_filter_pred(), stx_map_stream_to_func_pred(), stx_map_stream_to_xasl(), stx_map_stream_to_xasl_node_header(), stx_restore(), stx_restore_access_spec_type(), stx_restore_int_array(), stx_restore_odku_info(), stx_restore_regu_variable_list(), stx_restore_regu_varlist_list(), stx_restore_string(), stx_unpack(), stx_unpack_regu_variable_value(), svacuum_dump(), sysprm_change_server_parameters(), sysprm_get_force_server_parameters(), sysprm_obtain_server_parameters(), sysprm_unpack_assign_values(), sysprm_unpack_session_parameters(), sysprm_unpack_sysprm_value(), tde_get_mk_file_path(), tde_get_mk_info(), thread_kill_or_interrupt_tran(), thread_kill_tran_index(), tran_is_blocked(), tran_lock_rep_read(), tran_server_2pc_attach_global_tran(), tran_server_2pc_prepare(), tran_server_2pc_prepare_global_tran(), tran_server_2pc_recovery_prepared(), tran_server_2pc_start(), tran_server_abort(), tran_server_commit(), tran_server_get_global_tran_info(), tran_server_has_updated(), tran_server_is_active_and_has_updated(), tran_server_partial_abort(), tran_server_savepoint(), tran_server_set_global_tran_info(), tran_wait_server_active_trans(), ws_set_repl_error_into_error_link(), xlog_get_page_request_with_reply(), xqmgr_prepare_query(), and xts_map_func_pred_to_stream().

char* or_unpack_int_array ( char *  ptr,
int  n,
int **  number_array 
)

Definition at line 2927 of file object_representation.c.

References ASSERT_ALIGN, db_private_alloc, i, INT_ALIGNMENT, NULL, and or_unpack_int().

Referenced by sboot_compact_db(), sbtree_load_index(), slocator_check_fk_validity(), and sthread_kill_or_interrupt_tran().

Here is the caller graph for this function:

char* or_unpack_log_lsa ( char *  ptr,
log_lsa lsa 
)
static char * or_unpack_method_sig ( char *  ptr,
void **  method_sig_ptr,
int  n 
)
static
char* or_unpack_method_sig_list ( char *  ptr,
void **  method_sig_list_ptr 
)
char* or_unpack_mvccid ( char *  ptr,
MVCCID mvccid 
)

Definition at line 7598 of file object_representation.c.

References assert, ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_GET_MVCCID, and OR_MVCCID_SIZE.

Referenced by btree_rv_keyval_dump(), btree_rv_read_keybuf_two_objects(), and btree_unpack_mvccinfo().

Here is the caller graph for this function:

char* or_unpack_oid ( char *  ptr,
OID oid 
)

Definition at line 3011 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_GET_OID, and OR_OID_SIZE.

Referenced by boot_compact_classes(), boot_register_client(), btree_find_multi_uniques(), btree_find_unique(), btree_is_fence_key(), btree_rv_keyval_dump(), btree_rv_read_keybuf_two_objects(), catalog_check_rep_dir(), locator_assign_oid(), locator_does_exist(), locator_fetch_all(), locator_find_class_oid(), locator_get_class(), locator_get_reserved_class_name_oid(), locator_unpack_copy_area_descriptor(), locator_unpack_lockhint_classes(), locator_unpack_lockset_classes(), locator_unpack_lockset_objects(), locator_unpack_oid_set_to_exist(), locator_unpack_oid_set_to_new(), sboot_check_db_consistency(), sboot_compact_db(), sboot_heap_compact(), sbtree_add_index(), sbtree_find_multi_uniques(), sbtree_find_unique_internal(), sbtree_load_index(), schksum_insert_repl_log_and_demote_table_lock(), sct_check_rep_dir(), sfile_apply_tde_to_class_files(), shf_create(), shf_destroy_when_new(), shf_has_instance(), slocator_assign_oid(), slocator_check_fk_validity(), slocator_demote_class_lock(), slocator_does_exist(), slocator_fetch(), slocator_fetch_all(), slocator_fetch_all_reference_lockset(), slocator_find_class_oid(), slocator_find_lockhint_class_oids(), slocator_get_class(), slocator_redistribute_partition_data(), slocator_remove_class_from_index(), slocator_rename_class_name(), slocator_reserve_classnames(), slocator_upgrade_instances_domain(), sqst_server_get_statistics(), sqst_update_statistics(), sserial_decache(), sserial_get_current_value(), sserial_get_next_value(), stx_build_cls_spec_type(), stx_build_insert_proc(), stx_build_selupd_list(), stx_restore_OID_array(), and xqmgr_prepare_query().

char* or_unpack_oid_array ( char *  ptr,
int  n,
OID **  oids 
)

Definition at line 3027 of file object_representation.c.

References ASSERT_ALIGN, db_private_alloc, i, INT_ALIGNMENT, NULL, OR_GET_OID, and OR_OID_SIZE.

Referenced by sboot_compact_db(), and sbtree_load_index().

Here is the caller graph for this function:

char* or_unpack_ptr ( char *  ptr,
UINTPTR *  ptrval 
)
char* or_unpack_set ( char *  ptr,
setobj **  set,
TP_DOMAIN domain 
)

Definition at line 3263 of file object_representation.c.

References or_get_set(), or_init(), and or_buf::ptr.

Referenced by mr_data_cmpdisk_sequence(), mr_data_cmpdisk_set(), mr_data_cmpdisk_vobj(), and or_unpack_setref().

Here is the caller graph for this function:

char* or_unpack_setref ( char *  ptr,
DB_SET **  ref 
)

Definition at line 3280 of file object_representation.c.

References NULL, or_unpack_set(), and setobj_get_reference().

Referenced by or_get_all_representation(), or_get_constraint_comment(), or_get_current_representation(), and or_get_old_representation().

Here is the caller graph for this function:

char* or_unpack_sha1 ( char *  ptr,
SHA1Hash sha1 
)

Definition at line 7641 of file object_representation.c.

References assert, ASSERT_ALIGN, INT_ALIGNMENT, NULL, OR_GET_SHA1, and OR_SHA1_SIZE.

Referenced by sqmgr_prepare_query(), and ssession_create_prepared_statement().

Here is the caller graph for this function:

char* or_unpack_short ( char *  ptr,
short *  number 
)

Definition at line 2667 of file object_representation.c.

References ASSERT_ALIGN, INT_ALIGNMENT, OR_GET_INT, and OR_INT_SIZE.

Referenced by jsp_unpack_object_value(), jsp_unpack_short_value(), and or_unpack_recdes().

Here is the caller graph for this function:

char* or_unpack_stream ( char *  ptr,
char *  stream,
size_t  len 
)
char* or_unpack_string_nocopy ( char *  ptr,
char **  string 
)
char* or_unpack_var_table ( char *  ptr,
int  nvars,
OR_VARINFO vars 
)
static char * or_unpack_var_table_internal ( char *  ptr,
int  nvars,
OR_VARINFO vars,
int  offset_size 
)
static

Definition at line 2456 of file object_representation.c.

References ASSERT_ALIGN, i, INT_ALIGNMENT, or_varinfo::length, or_varinfo::offset, OR_GET_OFFSET_INTERNAL, and PTR_ALIGN.

Referenced by or_get_var_table_internal(), and or_unpack_var_table().

Here is the caller graph for this function:

int or_varbit_length ( int  bitlen)

Definition at line 1122 of file object_representation.c.

References CHAR_ALIGNMENT, and or_varbit_length_internal().

Referenced by mr_index_lengthmem_varbit(), and mr_lengthval_varbit_internal().

Here is the caller graph for this function:

static int or_varbit_length_internal ( int  bitlen,
int  align 
)
static

Definition at line 1128 of file object_representation.c.

References DB_ALIGN, INT_ALIGNMENT, and OR_INT_SIZE.

Referenced by or_packed_varbit_length(), and or_varbit_length().

Here is the caller graph for this function:

int or_varchar_length ( int  charlen)

Definition at line 758 of file object_representation.c.

References CHAR_ALIGNMENT, and or_varchar_length_internal().

Referenced by mr_index_lengthmem_string(), mr_lengthval_string_internal(), and mr_lengthval_varnchar_internal().

Here is the caller graph for this function:

static int or_varchar_length_internal ( int  charlen,
int  align 
)
static

Definition at line 770 of file object_representation.c.

References DB_ALIGN, INT_ALIGNMENT, OR_BYTE_SIZE, OR_INT_SIZE, and OR_MINIMUM_STRING_LENGTH_FOR_COMPRESSION.

Referenced by or_packed_varchar_length(), and or_varchar_length().

Here is the caller graph for this function:

static TP_DOMAIN * unpack_domain ( OR_BUF buf,
int *  is_null 
)
static

Definition at line 4718 of file object_representation.c.

References assert, ASSERT_ERROR, tp_domain::class_mop, db_object::class_mop, tp_domain::class_oid, tp_domain::codeset, lang_collation::codeset, tp_domain::collation_flag, tp_domain::collation_id, db_enumeration::collation_id, COPY_OID, db_enumeration::count, db_json_load_validator(), DB_MAX_VARBIT_PRECISION, DB_MAX_VARCHAR_PRECISION, DB_MAX_VARNCHAR_PRECISION, db_private_free_and_init, 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_DOUBLE, DB_TYPE_ENUMERATION, DB_TYPE_FLOAT, DB_TYPE_INTEGER, DB_TYPE_JSON, DB_TYPE_MIDXKEY, DB_TYPE_MONETARY, DB_TYPE_MULTISET, DB_TYPE_NCHAR, DB_TYPE_NULL, DB_TYPE_NUMERIC, DB_TYPE_OBJECT, DB_TYPE_SEQUENCE, DB_TYPE_SET, DB_TYPE_SHORT, DB_TYPE_TABLE, DB_TYPE_TIME, DB_TYPE_TIMESTAMP, DB_TYPE_TIMESTAMPLTZ, DB_TYPE_TIMESTAMPTZ, DB_TYPE_VARBIT, DB_TYPE_VARCHAR, DB_TYPE_VARNCHAR, DOM_SET_ENUM_ELEMENTS, DOM_SET_ENUM_ELEMS_COUNT, db_enumeration::elements, tp_domain::enumeration, er_errid(), error(), INTL_CODESET_ISO88591, tp_domain::is_desc, tp_domain::json_validator, LANG_COLL_ISO_BINARY, lang_get_collation(), tp_domain::next, NO_ERROR, NULL, OID_SET_NULL, or_align(), OR_DOMAIN_BUILTIN_FLAG, OR_DOMAIN_CLASS_OID_FLAG, OR_DOMAIN_CODSET_MASK, OR_DOMAIN_CODSET_SHIFT, OR_DOMAIN_COLL_ENFORCE_FLAG, OR_DOMAIN_COLL_LEAVE_FLAG, OR_DOMAIN_COLLATION_MASK, OR_DOMAIN_DESC_FLAG, OR_DOMAIN_ENUM_COLL_FLAG, OR_DOMAIN_ENUMERATION_FLAG, OR_DOMAIN_NEXT_FLAG, OR_DOMAIN_NULL_FLAG, OR_DOMAIN_PRECISION_MASK, OR_DOMAIN_PRECISION_MAX, OR_DOMAIN_PRECISION_SHIFT, OR_DOMAIN_SCALE_MASK, OR_DOMAIN_SCALE_MAX, OR_DOMAIN_SCALE_SHIFT, OR_DOMAIN_SCHEMA_FLAG, OR_DOMAIN_SET_DOMAIN_FLAG, OR_DOMAIN_TYPE_MASK, or_get_enumeration(), or_get_int(), or_get_json_schema(), or_get_oid(), OR_INT_SIZE, tp_domain::precision, rc, tp_domain::setdomain, tp_domain_cache(), tp_domain_clear_enumeration(), TP_DOMAIN_COLL_ENFORCE, TP_DOMAIN_COLL_LEAVE, TP_DOMAIN_COLL_NORMAL, tp_domain_construct(), tp_domain_find_charbit(), tp_domain_find_enumeration(), tp_domain_find_noparam(), tp_domain_find_numeric(), tp_domain_find_object(), tp_domain_find_set(), tp_domain_free(), tp_domain_resolve_default(), tp_domain_size(), TP_FLOATING_PRECISION_VALUE, tp_get_fixed_precision(), unpack_domain_2(), and ws_mop().

Referenced by or_get_domain().

Here is the caller graph for this function:

static TP_DOMAIN* unpack_domain_2 ( OR_BUF buf,
int *  is_null 
)
static

Definition at line 4376 of file object_representation.c.

References assert, tp_domain::class_mop, tp_domain::class_oid, tp_domain::codeset, lang_collation::codeset, tp_domain::collation_flag, tp_domain::collation_id, db_enumeration::collation_id, DB_MAX_VARBIT_PRECISION, DB_MAX_VARCHAR_PRECISION, DB_MAX_VARNCHAR_PRECISION, DB_TYPE_BIGINT, DB_TYPE_BIT, DB_TYPE_CHAR, DB_TYPE_DATE, DB_TYPE_DATETIME, DB_TYPE_DATETIMELTZ, DB_TYPE_DATETIMETZ, DB_TYPE_DOUBLE, DB_TYPE_ENUMERATION, DB_TYPE_FLOAT, DB_TYPE_INTEGER, DB_TYPE_JSON, DB_TYPE_MIDXKEY, DB_TYPE_MONETARY, DB_TYPE_MULTISET, DB_TYPE_NCHAR, DB_TYPE_NULL, DB_TYPE_NUMERIC, DB_TYPE_OBJECT, DB_TYPE_SEQUENCE, DB_TYPE_SET, DB_TYPE_SHORT, DB_TYPE_TABLE, DB_TYPE_TIME, DB_TYPE_TIMESTAMP, DB_TYPE_TIMESTAMPLTZ, DB_TYPE_TIMESTAMPTZ, DB_TYPE_VARBIT, DB_TYPE_VARCHAR, DB_TYPE_VARNCHAR, DOM_GET_ENUMERATION, tp_domain::enumeration, error(), INTL_CODESET_ISO88591, tp_domain::is_desc, tp_domain::json_validator, LANG_COLL_ISO_BINARY, lang_get_collation(), tp_domain::next, NO_ERROR, NULL, OR_DOMAIN_BUILTIN_FLAG, OR_DOMAIN_CLASS_OID_FLAG, OR_DOMAIN_CODSET_MASK, OR_DOMAIN_CODSET_SHIFT, OR_DOMAIN_COLL_ENFORCE_FLAG, OR_DOMAIN_COLL_LEAVE_FLAG, OR_DOMAIN_COLLATION_MASK, OR_DOMAIN_DESC_FLAG, OR_DOMAIN_ENUM_COLL_FLAG, OR_DOMAIN_ENUMERATION_FLAG, OR_DOMAIN_NEXT_FLAG, OR_DOMAIN_NULL_FLAG, OR_DOMAIN_PRECISION_MASK, OR_DOMAIN_PRECISION_MAX, OR_DOMAIN_PRECISION_SHIFT, OR_DOMAIN_SCALE_MASK, OR_DOMAIN_SCALE_MAX, OR_DOMAIN_SCALE_SHIFT, OR_DOMAIN_SCHEMA_FLAG, OR_DOMAIN_SET_DOMAIN_FLAG, OR_DOMAIN_TYPE_MASK, or_get_enumeration(), or_get_int(), or_get_json_validator(), or_get_oid(), tp_domain::precision, rc, tp_domain::setdomain, TP_DOMAIN_COLL_ENFORCE, TP_DOMAIN_COLL_LEAVE, TP_DOMAIN_COLL_NORMAL, tp_domain_construct(), tp_domain_free(), tp_domain_resolve_default(), tp_domain_size(), TP_FLOATING_PRECISION_VALUE, tp_get_fixed_precision(), and ws_mop().

Referenced by or_get_domain(), and unpack_domain().

Here is the caller graph for this function:

Variable Documentation

int mvcc_header_size_lookup[8]
int or_Type_sizes[]

Definition at line 225 of file object_representation.c.