CUBRID Engine
latest
|
#include "xasl_stream.hpp"
#include "memory_alloc.h"
#include "object_representation.h"
#include "xasl.h"
#include "xasl_unpack_info.hpp"
Go to the source code of this file.
Macros | |
#define | UNPACK_SCALE 3 /* TODO: assume */ |
Variables | |
static int | stx_Xasl_errcode = NO_ERROR |
#define UNPACK_SCALE 3 /* TODO: assume */ |
Referenced by stx_init_xasl_unpack_info().
char* stx_alloc_struct | ( | THREAD_ENTRY * | thread_p, |
int | size | ||
) |
Definition at line 223 of file xasl_stream.cpp.
References xasl_unpack_info::additional_buffers, xasl_unpack_info::alloc_buf, xasl_unpack_info::alloc_size, unpack_extra_buf::buff, db_private_alloc, db_private_free_and_init, get_xasl_unpack_info_ptr(), unpack_extra_buf::next, NULL, xasl_unpack_info::packed_size, xasl_unpack_info::track_allocated_bufers, and xasl_stream_make_align().
Referenced by stx_alloc(), stx_alloc_array(), stx_build(), stx_build_buildlist_proc(), stx_build_insert_proc(), stx_build_method_sig(), stx_build_pred(), stx_build_regu_value_list(), stx_build_update_class_info(), stx_build_val_list(), stx_regu_value_item_alloc_and_init(), stx_regu_value_list_alloc_and_init(), stx_restore(), stx_restore_access_spec_type(), stx_restore_aggregate_type(), stx_restore_analytic_eval_type(), stx_restore_analytic_type(), stx_restore_arith_type(), stx_restore_cache_attrinfo(), stx_restore_db_value(), stx_restore_db_value_array_extra(), stx_restore_func_pred(), stx_restore_function_type(), stx_restore_hfid_array(), stx_restore_indx_info(), stx_restore_int_array(), stx_restore_key_range_array(), stx_restore_list_id(), stx_restore_method_sig(), stx_restore_method_sig_list(), stx_restore_odku_info(), stx_restore_OID_array(), stx_restore_outptr_list(), stx_restore_pred_expr(), stx_restore_regu_variable(), stx_restore_regu_variable_list(), stx_restore_regu_varlist_list(), stx_restore_selupd_list(), stx_restore_sort_list(), stx_restore_srlist_id(), stx_restore_string(), stx_restore_update_assignment_array(), stx_restore_update_class_info_array(), stx_restore_val_list(), stx_restore_xasl_node(), and stx_unpack().
char* stx_build | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
cubxasl::json_table::column & | jtc | ||
) |
Definition at line 362 of file xasl_stream.cpp.
References get_xasl_unpack_info_ptr(), JSON_TABLE_EXISTS, JSON_TABLE_ORDINALITY, cubxasl::json_table::column::m_column_name, cubxasl::json_table::column::m_domain, cubxasl::json_table::column::m_function, cubxasl::json_table::column::m_on_empty, cubxasl::json_table::column::m_on_error, cubxasl::json_table::column::m_output_value_pointer, cubxasl::json_table::column::m_path, NULL, or_unpack_domain(), or_unpack_int(), stx_restore(), stx_restore_string(), stx_unpack(), and tp_Integer_domain.
Referenced by stx_build(), and stx_unpack().
char* stx_build | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
cubxasl::json_table::node & | jtn | ||
) |
Definition at line 395 of file xasl_stream.cpp.
References bool, i, cubxasl::json_table::column::init(), cubxasl::json_table::node::init(), cubxasl::json_table::node::m_id, cubxasl::json_table::node::m_is_iterable_node, cubxasl::json_table::node::m_iterator, cubxasl::json_table::node::m_nested_nodes, cubxasl::json_table::node::m_nested_nodes_size, cubxasl::json_table::node::m_output_columns, cubxasl::json_table::node::m_output_columns_size, cubxasl::json_table::node::m_path, or_unpack_int(), stx_alloc_struct(), stx_build(), and stx_restore_string().
char* stx_build | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
cubxasl::json_table::spec_node & | json_table_spec | ||
) |
Definition at line 439 of file xasl_stream.cpp.
References assert, cubxasl::json_table::node::init(), cubxasl::json_table::spec_node::init(), cubxasl::json_table::spec_node::m_json_reguvar, cubxasl::json_table::spec_node::m_node_count, cubxasl::json_table::spec_node::m_root_node, NULL, or_unpack_int(), stx_alloc(), stx_build(), and stx_restore().
Referenced by stx_restore().
char* stx_build | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
db_value & | val | ||
) |
Definition at line 459 of file xasl_stream.cpp.
References stx_build_db_value().
char* stx_build_db_value | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
DB_VALUE * | value | ||
) |
Definition at line 281 of file xasl_stream.cpp.
References or_unpack_db_value().
Referenced by stx_build(), stx_restore_db_value(), and stx_unpack_regu_variable_value().
char* stx_build_string | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
char * | string | ||
) |
Definition at line 289 of file xasl_stream.cpp.
References assert_release, and or_unpack_int().
Referenced by stx_restore_string().
void stx_free_visited_ptrs | ( | THREAD_ENTRY * | thread_p | ) |
Definition at line 199 of file xasl_stream.cpp.
References db_private_free_and_init, get_xasl_unpack_info_ptr(), i, MAX_PTR_BLOCKS, xasl_unpack_info::ptr_blocks, xasl_unpack_info::ptr_lwm, and xasl_unpack_info::ptr_max.
Referenced by stx_map_stream_to_filter_pred(), stx_map_stream_to_func_pred(), and stx_map_stream_to_xasl().
void* stx_get_struct_visited_ptr | ( | THREAD_ENTRY * | thread_p, |
const void * | ptr | ||
) |
Definition at line 168 of file xasl_stream.cpp.
References get_xasl_unpack_info_ptr(), NULL, visited_ptr::ptr, xasl_unpack_info::ptr_blocks, xasl_unpack_info::ptr_lwm, visited_ptr::str, and xasl_stream_get_ptr_block().
Referenced by stx_build_regu_value_list(), stx_restore(), stx_restore_aggregate_type(), stx_restore_analytic_eval_type(), stx_restore_analytic_type(), stx_restore_arith_type(), stx_restore_cache_attrinfo(), stx_restore_db_value(), stx_restore_func_pred(), stx_restore_function_type(), stx_restore_indx_info(), stx_restore_list_id(), stx_restore_method_sig(), stx_restore_method_sig_list(), stx_restore_outptr_list(), stx_restore_pred_expr(), stx_restore_regu_variable(), stx_restore_regu_variable_list(), stx_restore_regu_varlist_list(), stx_restore_selupd_list(), stx_restore_sort_list(), stx_restore_srlist_id(), stx_restore_string(), stx_restore_val_list(), and stx_restore_xasl_node().
int stx_get_xasl_errcode | ( | THREAD_ENTRY * | thread_p | ) |
Definition at line 39 of file xasl_stream.cpp.
References stx_Xasl_errcode.
Referenced by stx_map_stream_to_filter_pred(), stx_map_stream_to_func_pred(), and stx_map_stream_to_xasl().
int stx_init_xasl_unpack_info | ( | THREAD_ENTRY * | thread_p, |
char * | xasl_stream, | ||
int | xasl_stream_size | ||
) |
Definition at line 72 of file xasl_stream.cpp.
References xasl_unpack_info::additional_buffers, xasl_unpack_info::alloc_buf, xasl_unpack_info::alloc_size, db_private_alloc, ER_FAILED, MAX_PTR_BLOCKS, NO_ERROR, NULL, xasl_unpack_info::packed_size, xasl_unpack_info::packed_xasl, xasl_unpack_info::ptr_blocks, xasl_unpack_info::ptr_lwm, xasl_unpack_info::ptr_max, set_xasl_unpack_info_ptr(), xasl_unpack_info::track_allocated_bufers, UNPACK_SCALE, and xasl_stream_make_align().
Referenced by stx_map_stream_to_filter_pred(), stx_map_stream_to_func_pred(), stx_map_stream_to_xasl(), and xts_debug_check().
int stx_mark_struct_visited | ( | THREAD_ENTRY * | thread_p, |
const void * | ptr, | ||
void * | str | ||
) |
Definition at line 120 of file xasl_stream.cpp.
References db_private_alloc, db_private_realloc, ER_FAILED, ER_OUT_OF_VIRTUAL_MEMORY, get_xasl_unpack_info_ptr(), NO_ERROR, NULL, visited_ptr::ptr, xasl_unpack_info::ptr_blocks, xasl_unpack_info::ptr_lwm, xasl_unpack_info::ptr_max, START_PTR_PER_BLOCK, visited_ptr::str, stx_set_xasl_errcode(), and xasl_stream_get_ptr_block().
Referenced by stx_build_regu_value_list(), stx_restore(), stx_restore_aggregate_type(), stx_restore_analytic_eval_type(), stx_restore_analytic_type(), stx_restore_arith_type(), stx_restore_cache_attrinfo(), stx_restore_db_value(), stx_restore_func_pred(), stx_restore_function_type(), stx_restore_indx_info(), stx_restore_list_id(), stx_restore_method_sig(), stx_restore_method_sig_list(), stx_restore_outptr_list(), stx_restore_pred_expr(), stx_restore_regu_variable(), stx_restore_regu_variable_list(), stx_restore_regu_varlist_list(), stx_restore_selupd_list(), stx_restore_sort_list(), stx_restore_srlist_id(), stx_restore_string(), stx_restore_val_list(), and stx_restore_xasl_node().
char* stx_restore_string | ( | THREAD_ENTRY * | thread_p, |
char *& | ptr | ||
) |
Definition at line 303 of file xasl_stream.cpp.
References assert, assert_release, ER_FAILED, ER_OUT_OF_VIRTUAL_MEMORY, get_xasl_unpack_info_ptr(), NULL, OR_GET_INT, or_unpack_int(), xasl_unpack_info::packed_xasl, stx_alloc_struct(), stx_build_string(), stx_get_struct_visited_ptr(), stx_mark_struct_visited(), and stx_set_xasl_errcode().
Referenced by stx_build(), stx_build_method_sig(), and stx_build_xasl_node().
void stx_set_xasl_errcode | ( | THREAD_ENTRY * | thread_p, |
int | errcode | ||
) |
Definition at line 54 of file xasl_stream.cpp.
References stx_Xasl_errcode.
Referenced by 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_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_id(), 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_pred(), stx_build_pred_expr(), stx_build_regu_value_list(), stx_build_regu_variable(), stx_build_rlike_eval_term(), stx_build_rlist_spec_type(), stx_build_selupd_list(), stx_build_set_spec_type(), stx_build_showstmt_spec_type(), stx_build_sort_list(), stx_build_srlist_id(), stx_build_union_proc(), stx_build_update_class_info(), stx_build_update_proc(), stx_build_val_list(), stx_build_xasl_node(), stx_map_stream_to_filter_pred(), stx_map_stream_to_func_pred(), stx_map_stream_to_xasl(), stx_mark_struct_visited(), stx_regu_value_item_alloc_and_init(), stx_regu_value_list_alloc_and_init(), stx_restore_access_spec_type(), stx_restore_aggregate_type(), stx_restore_analytic_eval_type(), stx_restore_analytic_type(), stx_restore_arith_type(), stx_restore_cache_attrinfo(), stx_restore_db_value(), stx_restore_db_value_array_extra(), stx_restore_filter_pred_node(), stx_restore_func_pred(), stx_restore_function_type(), stx_restore_hfid_array(), stx_restore_indx_info(), stx_restore_int_array(), stx_restore_key_range_array(), stx_restore_list_id(), stx_restore_method_sig(), stx_restore_method_sig_list(), stx_restore_odku_info(), stx_restore_OID_array(), stx_restore_outptr_list(), stx_restore_pred_expr(), stx_restore_regu_variable(), stx_restore_regu_variable_list(), stx_restore_regu_varlist_list(), stx_restore_selupd_list(), stx_restore_sort_list(), stx_restore_srlist_id(), stx_restore_string(), stx_restore_update_assignment_array(), stx_restore_update_class_info_array(), stx_restore_val_list(), stx_restore_xasl_node(), and stx_unpack_regu_variable_value().
char* stx_unpack | ( | THREAD_ENTRY * | thread_p, |
char * | ptr, | ||
json_table_column_behavior & | behavior | ||
) |
Definition at line 465 of file xasl_stream.cpp.
References JSON_TABLE_DEFAULT_VALUE, json_table_column_behavior::m_behavior, json_table_column_behavior::m_default_value, or_unpack_int(), stx_alloc_struct(), and stx_build().
Referenced by stx_build().
bool xasl_stream_compare | ( | const cubxasl::json_table::column & | first, |
const cubxasl::json_table::column & | second | ||
) |
Definition at line 482 of file xasl_stream.cpp.
References cubxasl::json_table::column::m_function.
Referenced by xts_debug_check().
bool xasl_stream_compare | ( | const cubxasl::json_table::node & | first, |
const cubxasl::json_table::node & | second | ||
) |
Definition at line 493 of file xasl_stream.cpp.
References cubxasl::json_table::node::m_id, cubxasl::json_table::node::m_is_iterable_node, cubxasl::json_table::node::m_nested_nodes_size, and cubxasl::json_table::node::m_output_columns_size.
bool xasl_stream_compare | ( | const cubxasl::json_table::spec_node & | first, |
const cubxasl::json_table::spec_node & | second | ||
) |
Definition at line 519 of file xasl_stream.cpp.
References cubxasl::json_table::spec_node::m_node_count.
|
static |
Definition at line 31 of file xasl_stream.cpp.
Referenced by stx_get_xasl_errcode(), and stx_set_xasl_errcode().