|
CUBRID Engine
latest
|


Go to the source code of this file.
Classes | |
| struct | instance_info |
| struct | class_table |
Macros | |
| #define | INST_FLAG_RESERVED 1 |
| #define | INST_FLAG_INSERTED 2 |
| #define | INST_FLAG_CLASS_ATT 4 |
Typedefs | |
| typedef struct instance_info | INST_INFO |
| typedef struct class_table | CLASS_TABLE |
| typedef int(* | OTABLE_MAPFUNC) (CLASS_TABLE *class_, OID *oid) |
Functions | |
| int | otable_presize (MOP class_, int size) |
| void | otable_set_presize (CLASS_TABLE *table, int size) |
| int | otable_insert (CLASS_TABLE *table, OID *instance, int id) |
| int | otable_reserve (CLASS_TABLE *table, OID *instance, int id) |
| int | otable_update (CLASS_TABLE *table, int id) |
| void | otable_class_att_ref (INST_INFO *inst) |
| CLASS_TABLE * | otable_find_class (MOP class_) |
| INST_INFO * | otable_find (CLASS_TABLE *table, int id) |
| int | otable_prepare (void) |
| int | otable_init (void) |
| void | otable_final (void) |
| int | otable_map_reserved (OTABLE_MAPFUNC mapfunc, int stop_on_error) |
Variables | |
| CLASS_TABLE * | Classes |
| #define INST_FLAG_CLASS_ATT 4 |
Definition at line 36 of file load_object_table.h.
Referenced by ldr_reset_context(), and otable_class_att_ref().
| #define INST_FLAG_INSERTED 2 |
Definition at line 35 of file load_object_table.h.
Referenced by otable_insert(), otable_reserve(), and otable_update().
| #define INST_FLAG_RESERVED 1 |
Definition at line 34 of file load_object_table.h.
Referenced by insert_instance(), insert_meth_instance(), ldr_reset_context(), otable_map_reserved(), and otable_reserve().
| typedef struct class_table CLASS_TABLE |
Definition at line 57 of file load_object_table.h.
| typedef struct instance_info INST_INFO |
Definition at line 45 of file load_object_table.h.
| typedef int(* OTABLE_MAPFUNC) (CLASS_TABLE *class_, OID *oid) |
Definition at line 71 of file load_object_table.h.
| void otable_class_att_ref | ( | INST_INFO * | inst | ) |
Definition at line 272 of file load_object_table.c.
References instance_info::flags, and INST_FLAG_CLASS_ATT.
Referenced by find_instance().

| void otable_final | ( | void | ) |
Definition at line 406 of file load_object_table.c.
References flush_class_tables().
Referenced by ldr_final().

| INST_INFO* otable_find | ( | CLASS_TABLE * | table, |
| int | id | ||
| ) |
Definition at line 175 of file load_object_table.c.
References class_table::count, instance_info::flags, class_table::instances, and NULL.
Referenced by find_instance(), insert_instance(), insert_meth_instance(), ldr_assign_all_perm_oids(), and ldr_reset_context().

| CLASS_TABLE* otable_find_class | ( | MOP | class_ | ) |
Definition at line 49 of file load_object_table.c.
References ARG_FILE_LINE, class_table::class_, Classes, class_table::count, ER_ERROR_SEVERITY, ER_LDR_MEMORY_ERROR, er_set(), class_table::instances, class_table::next, NULL, class_table::presize, and class_table::total_inserts.
Referenced by find_instance(), and ldr_act_init_context().

| int otable_init | ( | void | ) |
Definition at line 358 of file load_object_table.c.
References NO_ERROR, and NULL.
Referenced by ldr_init().

| int otable_insert | ( | CLASS_TABLE * | table, |
| OID * | instance, | ||
| int | id | ||
| ) |
Definition at line 193 of file load_object_table.c.
References class_table::class_, class_table::count, db_get_class_name(), error(), instance_info::flags, grow_instance_table(), INST_FLAG_INSERTED, cubthread::instance, class_table::instances, LOADDB_MSG_REDEFINING_INSTANCE, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_LOADDB, NO_ERROR, and instance_info::oid.
Referenced by insert_instance(), and insert_meth_instance().

| int otable_map_reserved | ( | OTABLE_MAPFUNC | mapfunc, |
| int | stop_on_error | ||
| ) |
Definition at line 308 of file load_object_table.c.
References class_table::count, error(), instance_info::flags, i, INST_FLAG_RESERVED, class_table::instances, class_table::next, NO_ERROR, and NULL.
Referenced by update_default_instances_stats().

| int otable_prepare | ( | void | ) |
Definition at line 382 of file load_object_table.c.
References error(), init_instance_table(), class_table::next, NO_ERROR, NULL, class_table::presize, and realloc_instance_table().
| int otable_presize | ( | MOP | class_, |
| int | size | ||
| ) |
| int otable_reserve | ( | CLASS_TABLE * | table, |
| OID * | instance, | ||
| int | id | ||
| ) |
Definition at line 228 of file load_object_table.c.
References class_table::class_, class_table::count, db_get_class_name(), error(), instance_info::flags, grow_instance_table(), INST_FLAG_INSERTED, INST_FLAG_RESERVED, cubthread::instance, class_table::instances, LOADDB_MSG_INSTANCE_DEFINED, LOADDB_MSG_INSTANCE_RESERVED, MSGCAT_CATALOG_UTILS, msgcat_message(), MSGCAT_UTIL_SET_LOADDB, NO_ERROR, and instance_info::oid.
Referenced by find_instance().

| void otable_set_presize | ( | CLASS_TABLE * | table, |
| int | size | ||
| ) |
Definition at line 345 of file load_object_table.c.
References NULL, and class_table::presize.
| int otable_update | ( | CLASS_TABLE * | table, |
| int | id | ||
| ) |
Definition at line 289 of file load_object_table.c.
References class_table::count, instance_info::flags, INST_FLAG_INSERTED, class_table::instances, and NO_ERROR.
Referenced by insert_instance().

| CLASS_TABLE* Classes |
Definition at line 38 of file load_object_table.c.
Referenced by ldr_update_statistics(), and otable_find_class().