CUBRID Engine  latest
db_set_function.h File Reference
#include "dbtype_def.h"
Include dependency graph for db_set_function.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int db_set_compare (const DB_VALUE *value1, const DB_VALUE *value2)
 
DB_COLLECTIONdb_set_create (DB_OBJECT *classobj, const char *name)
 
DB_COLLECTIONdb_set_create_basic (DB_OBJECT *classobj, const char *name)
 
DB_COLLECTIONdb_set_create_multi (DB_OBJECT *classobj, const char *name)
 
DB_COLLECTIONdb_seq_create (DB_OBJECT *classobj, const char *name, int size)
 
int db_set_free (DB_COLLECTION *set)
 
int db_set_filter (DB_COLLECTION *set)
 
int db_set_add (DB_COLLECTION *set, DB_VALUE *value)
 
int db_set_get (DB_COLLECTION *set, int element_index, DB_VALUE *value)
 
int db_set_drop (DB_COLLECTION *set, DB_VALUE *value)
 
int db_set_size (DB_COLLECTION *set)
 
int db_set_cardinality (DB_COLLECTION *set)
 
int db_set_ismember (DB_COLLECTION *set, DB_VALUE *value)
 
int db_set_isempty (DB_COLLECTION *set)
 
int db_set_has_null (DB_COLLECTION *set)
 
int db_set_print (DB_COLLECTION *set)
 
DB_TYPE db_set_type (DB_COLLECTION *set)
 
DB_COLLECTIONdb_set_copy (DB_COLLECTION *set)
 
int db_seq_get (DB_COLLECTION *set, int element_index, DB_VALUE *value)
 
int db_seq_put (DB_COLLECTION *set, int element_index, DB_VALUE *value)
 
int db_seq_insert (DB_COLLECTION *set, int element_index, DB_VALUE *value)
 
int db_seq_drop (DB_COLLECTION *set, int element_index)
 
int db_seq_size (DB_COLLECTION *set)
 
int db_seq_cardinality (DB_COLLECTION *set)
 
int db_seq_print (DB_COLLECTION *set)
 
int db_seq_find (DB_COLLECTION *set, DB_VALUE *value, int element_index)
 
int db_seq_free (DB_SEQ *seq)
 
int db_seq_filter (DB_SEQ *seq)
 
DB_SEQdb_seq_copy (DB_SEQ *seq)
 
DB_COLLECTIONdb_col_create (DB_TYPE type, int size, DB_DOMAIN *domain)
 
DB_COLLECTIONdb_col_copy (DB_COLLECTION *col)
 
int db_col_filter (DB_COLLECTION *col)
 
int db_col_free (DB_COLLECTION *col)
 
int db_col_coerce (DB_COLLECTION *col, DB_DOMAIN *domain)
 
int db_col_size (DB_COLLECTION *col)
 
int db_col_cardinality (DB_COLLECTION *col)
 
DB_TYPE db_col_type (DB_COLLECTION *col)
 
DB_DOMAINdb_col_domain (DB_COLLECTION *col)
 
int db_col_ismember (DB_COLLECTION *col, DB_VALUE *value)
 
int db_col_find (DB_COLLECTION *col, DB_VALUE *value, int starting_index, int *found_index)
 
int db_col_add (DB_COLLECTION *col, DB_VALUE *value)
 
int db_col_drop (DB_COLLECTION *col, DB_VALUE *value, int all)
 
int db_col_drop_element (DB_COLLECTION *col, int element_index)
 
int db_col_drop_nulls (DB_COLLECTION *col)
 
int db_col_get (DB_COLLECTION *col, int element_index, DB_VALUE *value)
 
int db_col_put (DB_COLLECTION *col, int element_index, DB_VALUE *value)
 
int db_col_insert (DB_COLLECTION *col, int element_index, DB_VALUE *value)
 
int db_col_print (DB_COLLECTION *col)
 
int db_col_fprint (FILE *fp, DB_COLLECTION *col)
 

Function Documentation

int db_col_add ( DB_COLLECTION col,
DB_VALUE value 
)
int db_col_cardinality ( DB_COLLECTION col)

Definition at line 1192 of file db_set.c.

References CHECK_1ARG_MINUSONE, CHECK_CONNECT_MINUSONE, and set_cardinality().

int db_col_coerce ( DB_COLLECTION col,
DB_DOMAIN domain 
)
DB_COLLECTION* db_col_copy ( DB_COLLECTION col)

Definition at line 975 of file db_set.c.

References CHECK_CONNECT_NULL, NULL, and set_copy().

DB_COLLECTION* db_col_create ( DB_TYPE  type,
int  size,
DB_DOMAIN domain 
)

Definition at line 949 of file db_set.c.

References CHECK_CONNECT_NULL, NULL, set_create(), and set_create_with_domain().

Referenced by api_collection_set_to_db_value(), and ldr_collection_db_collection().

Here is the caller graph for this function:

DB_DOMAIN* db_col_domain ( DB_COLLECTION col)

Definition at line 1421 of file db_set.c.

References CHECK_1ARG_NULL, CHECK_CONNECT_NULL, NULL, and set_get_domain().

Referenced by dbval_to_net_buf().

Here is the caller graph for this function:

int db_col_drop ( DB_COLLECTION col,
DB_VALUE value,
int  all 
)
int db_col_drop_element ( DB_COLLECTION col,
int  element_index 
)
int db_col_drop_nulls ( DB_COLLECTION col)
int db_col_filter ( DB_COLLECTION col)
int db_col_find ( DB_COLLECTION col,
DB_VALUE value,
int  starting_index,
int *  found_index 
)
int db_col_fprint ( FILE *  fp,
DB_COLLECTION col 
)

Definition at line 1444 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, NO_ERROR, NULL, and set_fprint().

Referenced by db_col_print().

Here is the caller graph for this function:

int db_col_free ( DB_COLLECTION col)

Definition at line 998 of file db_set.c.

References NO_ERROR, NULL, and set_free().

Referenced by api_collection_set_to_db_value(), and fn_collection().

Here is the caller graph for this function:

int db_col_get ( DB_COLLECTION col,
int  element_index,
DB_VALUE value 
)

Definition at line 1222 of file db_set.c.

References CHECK_2ARGS_ERROR, CHECK_CONNECT_ERROR, error(), and set_get_element().

Referenced by execute_info_set(), fill_collection(), pt_to_list_key(), ux_col_get(), and ux_get_generated_keys_client_insert().

Here is the caller graph for this function:

int db_col_insert ( DB_COLLECTION col,
int  element_index,
DB_VALUE value 
)
int db_col_ismember ( DB_COLLECTION col,
DB_VALUE value 
)

Definition at line 1327 of file db_set.c.

References CHECK_1ARG_MINUSONE, CHECK_CONNECT_MINUSONE, and set_ismember().

int db_col_print ( DB_COLLECTION col)

Definition at line 1466 of file db_set.c.

References db_col_fprint().

int db_col_put ( DB_COLLECTION col,
int  element_index,
DB_VALUE value 
)

Definition at line 1249 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, CHECK_MODIFICATION_ERROR, DB_TYPE_SEQUENCE, error(), NO_ERROR, NULL, db_set::owner, set_add_element(), set_get_type(), and set_put_element().

Referenced by set_to_db_value_mapf().

Here is the caller graph for this function:

int db_col_size ( DB_COLLECTION col)
DB_TYPE db_col_type ( DB_COLLECTION col)
int db_seq_cardinality ( DB_COLLECTION set)

Definition at line 867 of file db_set.c.

References CHECK_1ARG_MINUSONE, CHECK_CONNECT_MINUSONE, and set_cardinality().

DB_COLLECTION* db_seq_create ( DB_OBJECT classobj,
const char *  name,
int  size 
)
int db_seq_drop ( DB_COLLECTION set,
int  element_index 
)

Definition at line 823 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, CHECK_MODIFICATION_ERROR, NULL, and set_drop_seq_element().

Referenced by ux_col_seq_drop().

Here is the caller graph for this function:

int db_seq_filter ( DB_SEQ seq)
int db_seq_find ( DB_COLLECTION set,
DB_VALUE value,
int  element_index 
)

Definition at line 908 of file db_set.c.

References CHECK_2ARGS_ERROR, CHECK_CONNECT_ERROR, and set_find_seq_element().

int db_seq_free ( DB_SEQ seq)

Definition at line 323 of file db_set.c.

References NO_ERROR, NULL, and set_free().

Referenced by heap_clear_partition_info(), heap_get_partitions_from_subclasses(), partition_free_cache_entry(), and partition_pruning_context_to_cache_entry().

Here is the caller graph for this function:

int db_seq_insert ( DB_COLLECTION set,
int  element_index,
DB_VALUE value 
)
int db_seq_print ( DB_COLLECTION set)

Definition at line 886 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, NO_ERROR, and set_print().

int db_seq_size ( DB_COLLECTION set)

Definition at line 848 of file db_set.c.

References CHECK_1ARG_MINUSONE, CHECK_CONNECT_MINUSONE, and set_size().

Referenced by qdata_add_sequence_to_dbval(), set_has_objs(), setof_mop_to_setof_vobj(), and vid_fetch_instance().

Here is the caller graph for this function:

int db_set_cardinality ( DB_COLLECTION set)

Definition at line 578 of file db_set.c.

References CHECK_1ARG_MINUSONE, CHECK_CONNECT_MINUSONE, and set_cardinality().

Referenced by vid_fetch_instance().

Here is the caller graph for this function:

int db_set_compare ( const DB_VALUE value1,
const DB_VALUE value2 
)

Definition at line 1833 of file db_macro.c.

References tp_set_compare().

Referenced by pt_evaluate_db_value_expr().

Here is the caller graph for this function:

DB_COLLECTION* db_set_copy ( DB_COLLECTION set)

Definition at line 402 of file db_set.c.

References CHECK_CONNECT_NULL, NULL, and set_copy().

DB_COLLECTION* db_set_create ( DB_OBJECT classobj,
const char *  name 
)
DB_COLLECTION* db_set_create_basic ( DB_OBJECT classobj,
const char *  name 
)
DB_COLLECTION* db_set_create_multi ( DB_OBJECT classobj,
const char *  name 
)
int db_set_drop ( DB_COLLECTION set,
DB_VALUE value 
)

Definition at line 530 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, CHECK_MODIFICATION_ERROR, NULL, and set_drop_element().

Referenced by au_drop_member(), and ux_col_set_drop().

Here is the caller graph for this function:

int db_set_filter ( DB_COLLECTION set)
int db_set_free ( DB_COLLECTION set)

Definition at line 306 of file db_set.c.

References NO_ERROR, NULL, and set_free().

Referenced by cursor_fixup_set_vobjs(), dbval_to_net_buf(), or_get_all_representation(), or_get_current_representation(), and or_get_old_representation().

Here is the caller graph for this function:

int db_set_has_null ( DB_COLLECTION set)

Definition at line 644 of file db_set.c.

References CHECK_1ARG_FALSE, CHECK_CONNECT_FALSE, and set_has_null().

Referenced by partition_prune_list().

Here is the caller graph for this function:

int db_set_isempty ( DB_COLLECTION set)

Definition at line 621 of file db_set.c.

References CHECK_1ARG_FALSE, CHECK_CONNECT_FALSE, and set_isempty().

int db_set_ismember ( DB_COLLECTION set,
DB_VALUE value 
)

Definition at line 598 of file db_set.c.

References CHECK_1ARG_FALSE, CHECK_CONNECT_FALSE, and set_ismember().

Referenced by partition_prune_list().

Here is the caller graph for this function:

int db_set_print ( DB_COLLECTION set)

Definition at line 664 of file db_set.c.

References CHECK_1ARG_ERROR, CHECK_CONNECT_ERROR, NO_ERROR, and set_print().

Referenced by cursor_fetch_page_having_tuple().

Here is the caller graph for this function:

DB_TYPE db_set_type ( DB_COLLECTION set)

Definition at line 683 of file db_set.c.

References DB_TYPE_NULL, NULL, and set_get_type().

Referenced by ex_contains_object_reference(), and setof_mop_to_setof_vobj().

Here is the caller graph for this function: