IDZEBRA
2.2.7
|
Go to the source code of this file.
Data Structures | |
struct | ISAMC_filecat_s |
struct | ISAMC_M_s |
struct | ISAMC_I_s |
Macros | |
#define | isamc_type(x) ((x) & 7) |
#define | isamc_block(x) ((x) >> 3) |
Typedefs | |
typedef zint | ISAM_P |
typedef struct ISAMC_s * | ISAMC |
typedef struct ISAMC_PP_s * | ISAMC_PP |
typedef struct ISAMC_filecat_s * | ISAMC_filecat |
typedef struct ISAMC_M_s | ISAMC_M |
typedef struct ISAMC_I_s | ISAMC_I |
Functions | |
void | isamc_getmethod (ISAMC_M *m) |
ISAMC | isamc_open (BFiles bfs, const char *name, int writeflag, ISAMC_M *method) |
int | isamc_close (ISAMC is) |
void | isamc_merge (ISAMC is, ISAM_P *pos, ISAMC_I *data) |
ISAMC_PP | isamc_pp_open (ISAMC is, ISAM_P pos) |
void | isamc_pp_close (ISAMC_PP pp) |
int | isamc_read_item (ISAMC_PP pp, char **dst) |
int | isamc_pp_read (ISAMC_PP pp, void *buf) |
zint | isamc_pp_num (ISAMC_PP pp) |
zint | isamc_block_used (ISAMC is, int type) |
int | isamc_block_size (ISAMC is, int type) |
typedef struct ISAMC_filecat_s * ISAMC_filecat |
typedef struct ISAMC_PP_s* ISAMC_PP |
int isamc_block_size | ( | ISAMC | is, |
int | type | ||
) |
Definition at line 179 of file isamc.c.
References ISAMC_filecat_s::bsize, ISAMC_M_s::filecat, ISAMC_s::method, and ISAMC_s::no_files.
Referenced by zebra_register_statistics().
Definition at line 172 of file isamc.c.
References ISAMC_s::files, ISAMC_file_s::head, ISAMC_head::lastblock, and ISAMC_s::no_files.
Referenced by zebra_register_statistics().
int isamc_close | ( | ISAMC | is | ) |
Definition at line 187 of file isamc.c.
References ISAMC_file_s::alloc_buf, ISAMC_file_s::bf, bf_close(), bf_write(), ISAMC_M_s::debug, ISAMC_file_s::fc_list, ISAMC_s::files, flush_block(), ISAMC_file_s::head, ISAMC_file_s::head_is_dirty, ISAMC_s::merge_buf, ISAMC_s::method, ISAMC_file_s::no_allocated, ISAMC_file_s::no_backward, ISAMC_s::no_files, ISAMC_file_s::no_forward, ISAMC_file_s::no_next, ISAMC_file_s::no_prev, ISAMC_file_s::no_reads, ISAMC_file_s::no_released, ISAMC_file_s::no_remap, ISAMC_file_s::no_skip_writes, ISAMC_file_s::no_writes, release_fc(), ISAMC_file_s::sum_backward, and ISAMC_file_s::sum_forward.
Referenced by isamc_open(), and zebra_register_close().
void isamc_getmethod | ( | ISAMC_M * | m | ) |
Definition at line 45 of file isamc.c.
References ISAMC_M_s::codec, ISAMC_M_s::compare_item, ISAMC_M_s::debug, ISAM_CODEC::decode, ISAM_CODEC::encode, ISAMC_M_s::filecat, ISAMC_M_s::log_item, ISAMC_M_s::max_blocks_mem, ISAM_CODEC::reset, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by key_isamc_m().
Definition at line 154 of file merge.c.
References ISAMC_file_s::bf, bf_write(), isamc_merge_block::block, ISAMC_PP_s::cat, ISAMC_I_s::clientData, ISAMC_M_s::codec, ISAMC_M_s::compare_item, ISAMC_M_s::debug, ISAMC_PP_s::deleteFlag, isamc_merge_block::dirty, ISAM_CODEC::encode, ISAMC_M_s::filecat, ISAMC_s::files, flush_blocks(), get_border(), ISAMC_filecat_s::ifill, ISAMC_BLOCK_OFFSET_1, ISAMC_BLOCK_OFFSET_N, isamc_pp_close(), isamc_pp_num(), isamc_pp_open(), isamc_read_item(), isamc_release_block(), ISAMC_M_s::max_blocks_mem, ISAMC_s::max_cat, ISAMC_filecat_s::mblocks, ISAMC_s::merge_buf, ISAMC_s::method, ISAMC_filecat_s::mfill, ISAMC_file_s::no_remap, ISAMC_PP_s::numKeys, isamc_merge_block::offset, ISAMC_PP_s::pos, ISAMC_I_s::read_item, ISAM_CODEC::start, ISAM_CODEC::stop, and ZINT_FORMAT.
Referenced by heap_inpc().
Definition at line 77 of file isamc.c.
References ISAMC_file_s::alloc_buf, ISAMC_file_s::alloc_entries_max, ISAMC_file_s::alloc_entries_num, ISAMC_file_s::bf, bf_open(), bf_read(), ISAMC_filecat_s::bsize, ISAMC_M_s::debug, ISAMC_M_s::filecat, FILENAME_MAX, ISAMC_s::files, ISAMC_head::freelist, ISAMC_file_s::head, ISAMC_file_s::head_is_dirty, ISAMC_filecat_s::ifill, init_fc(), isamc_close(), ISAMC_head::lastblock, ISAMC_M_s::max_blocks_mem, ISAMC_s::max_cat, ISAMC_filecat_s::mblocks, ISAMC_s::merge_buf, ISAMC_s::method, ISAMC_filecat_s::mfill, ISAMC_file_s::no_allocated, ISAMC_file_s::no_backward, ISAMC_s::no_files, ISAMC_file_s::no_forward, ISAMC_file_s::no_next, ISAMC_file_s::no_prev, ISAMC_file_s::no_reads, ISAMC_file_s::no_released, ISAMC_file_s::no_remap, ISAMC_file_s::no_skip_writes, ISAMC_file_s::no_writes, ISAMC_file_s::sum_backward, and ISAMC_file_s::sum_forward.
Referenced by zebra_register_open().
void isamc_pp_close | ( | ISAMC_PP | pp | ) |
Definition at line 458 of file isamc.c.
References ISAMC_PP_s::buf, ISAMC_M_s::codec, ISAMC_PP_s::decodeClientData, ISAMC_PP_s::is, ISAMC_s::method, and ISAM_CODEC::stop.
Referenced by inv_stat_handle(), isamc_merge(), r_close(), and rset_trunc_r().
Definition at line 587 of file isamc.c.
References ISAMC_PP_s::numKeys.
Referenced by inv_stat_handle(), and isamc_merge().
Definition at line 467 of file isamc.c.
References ISAMC_filecat_s::bsize, ISAMC_PP_s::buf, ISAMC_PP_s::cat, ISAMC_M_s::codec, ISAMC_M_s::debug, ISAMC_PP_s::decodeClientData, ISAMC_PP_s::deleteFlag, ISAMC_M_s::filecat, ISAMC_PP_s::is, isamc_block, ISAMC_BLOCK_OFFSET_1, isamc_read_block(), isamc_type, ISAMC_s::method, ISAMC_PP_s::next, ISAMC_PP_s::numKeys, ISAMC_PP_s::offset, ISAMC_PP_s::pos, ISAMC_PP_s::size, ISAM_CODEC::start, and ZINT_FORMAT.
Referenced by inv_stat_handle(), isamc_merge(), and rset_trunc_r().
int isamc_pp_read | ( | ISAMC_PP | pp, |
void * | buf | ||
) |
Definition at line 511 of file isamc.c.
References isamc_read_item().
Referenced by inv_stat_handle(), r_read(), and rset_trunc_r().
int isamc_read_item | ( | ISAMC_PP | pp, |
char ** | dst | ||
) |
Definition at line 522 of file isamc.c.
References ISAMC_PP_s::buf, ISAMC_PP_s::cat, ISAMC_M_s::codec, ISAMC_M_s::debug, ISAM_CODEC::decode, ISAMC_PP_s::decodeClientData, ISAMC_PP_s::deleteFlag, ISAMC_s::files, ISAMC_PP_s::is, ISAMC_BLOCK_OFFSET_N, isamc_read_block(), isamc_release_block(), ISAMC_s::method, ISAMC_PP_s::next, ISAMC_file_s::no_backward, ISAMC_file_s::no_forward, ISAMC_file_s::no_next, ISAMC_file_s::no_prev, ISAMC_PP_s::offset, ISAMC_PP_s::pos, ISAMC_PP_s::size, ISAMC_file_s::sum_backward, ISAMC_file_s::sum_forward, and ZINT_FORMAT.
Referenced by isamc_merge(), and isamc_pp_read().