IDZEBRA
2.2.7
|
Go to the source code of this file.
Typedefs | |
typedef struct ISAMB_s * | ISAMB |
typedef struct ISAMB_PP_s * | ISAMB_PP |
Functions | |
ISAMB | isamb_open (BFiles bfs, const char *name, int writeflag, ISAMC_M *method, int cache) |
ISAMB | isamb_open2 (BFiles bfs, const char *name, int writeflag, ISAMC_M *method, int cache, int no_cat, int *sizes, int use_root_ptr) |
void | isamb_close (ISAMB isamb) |
void | isamb_merge (ISAMB b, ISAM_P *pos, ISAMC_I *data) |
ISAMB_PP | isamb_pp_open (ISAMB isamb, ISAM_P pos, int scope) |
int | isamb_pp_read (ISAMB_PP pp, void *buf) |
int | isamb_pp_forward (ISAMB_PP pp, void *buf, const void *untilbuf) |
void | isamb_pp_pos (ISAMB_PP pp, double *current, double *total) |
void | isamb_pp_close (ISAMB_PP pp) |
int | isamb_unlink (ISAMB b, ISAM_P pos) |
ISAMB_PP | isamb_pp_open_x (ISAMB isamb, ISAM_P pos, int *level, int scope) |
void | isamb_pp_close_x (ISAMB_PP pp, zint *size, zint *blocks) |
int | isamb_block_info (ISAMB isamb, int cat) |
void | isamb_dump (ISAMB b, ISAM_P pos, void(*pr)(const char *str)) |
zint | isamb_get_int_splits (ISAMB b) |
zint | isamb_get_leaf_splits (ISAMB b) |
void | isamb_set_int_count (ISAMB b, int v) |
void | isamb_set_cache_size (ISAMB b, int sz) |
zint | isamb_get_root_ptr (ISAMB b) |
void | isamb_set_root_ptr (ISAMB b, zint root_ptr) |
typedef struct ISAMB_PP_s* ISAMB_PP |
int isamb_block_info | ( | ISAMB | isamb, |
int | cat | ||
) |
Definition at line 1422 of file isamb.c.
References ISAMB_head::block_size, ISAMB_block::cat, ISAMB_s::file, and ISAMB_file::head.
Referenced by zebra_register_statistics().
void isamb_close | ( | ISAMB | isamb | ) |
Definition at line 455 of file isamb.c.
References ISAMB_s::accessed_nodes, ISAMB_file::bf, bf_close(), bf_write(), ISAMB_head::block_max, ISAMB_head::block_size, DST_BUF_SIZE, encode_ptr(), ISAMB_s::file, ISAMB_head::first_block, flush_blocks(), ISAMB_head::free_list, ISAMB_file::head, ISAMB_file::head_dirty, ISAMB_MAJOR_VERSION, ISAMB_MINOR_VERSION_WITH_ROOT, ISAMB_head::last_block, ISAMB_s::method, ISAMB_s::minor_version, ISAMB_s::no_cat, ISAMB_cache_entry::pos, ISAMB_s::returned_numbers, ISAMB_s::root_ptr, ISAMB_s::skipped_nodes, ISAMB_s::skipped_numbers, and ZINT_FORMAT.
Referenced by isamb_open2(), main(), recindex_close(), zebra_register_close(), and zebra_sort_close().
Definition at line 1498 of file isamb.c.
References isamb_dump_r(), and ISAMB_block::pos.
Referenced by bench_insert(), recindex_close(), tst_insert(), tst_minsert(), and tst_random().
Definition at line 1659 of file isamb.c.
References ISAMB_s::number_of_int_splits.
Referenced by index_block_flush().
Definition at line 1664 of file isamb.c.
References ISAMB_s::number_of_leaf_splits.
Referenced by index_block_flush().
Definition at line 1669 of file isamb.c.
References ISAMB_s::root_ptr.
Referenced by recindex_open(), and zebra_sort_type().
Definition at line 1266 of file isamb.c.
References ISAMB_block::bytes, ISAMB_s::cache, ISAMB_block::cat, ISAMC_I_s::clientData, close_block(), ISAMC_M_s::codec, DST_ITEM_MAX, ISAM_CODEC::encode, encode_item_len, encode_ptr(), insert_sub(), isamb_unlink(), ISAMB_s::method, new_int(), ISAMB_block::no_items, open_block(), ISAMB_block::pos, ISAMC_I_s::read_item, ISAM_CODEC::reset, ISAMB_block::size, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by bench_insert(), heap_inpb(), index_block_flush(), recindex_write_indx(), tst_append(), tst_forward(), tst_insert(), tst_minsert(), tst_random(), tst_x(), zebra_sort_add(), and zebra_sort_delete().
Definition at line 351 of file isamb.c.
References CAT_NO, ISAMB_FAC_SIZE, ISAMB_MIN_SIZE, and isamb_open2().
Referenced by main(), and zebra_register_open().
ISAMB isamb_open2 | ( | BFiles | bfs, |
const char * | name, | ||
int | writeflag, | ||
ISAMC_M * | method, | ||
int | cache, | ||
int | no_cat, | ||
int * | sizes, | ||
int | use_root_ptr | ||
) |
Definition at line 205 of file isamb.c.
References ISAMB_s::accessed_nodes, ISAMB_file::bf, bf_open(), bf_read(), ISAMB_s::bfs, ISAMB_head::block_max, ISAMB_head::block_offset, ISAMB_head::block_size, ISAMB_s::cache, ISAMB_file::cache_entries, ISAMB_s::cache_size, CAT_MAX, decode_ptr(), DST_BUF_SIZE, ISAMB_s::enable_int_count, ISAMB_s::file, ISAMB_head::first_block, ISAMB_head::free_list, ISAMB_file::head, ISAMB_file::head_dirty, ISAMB_CACHE_ENTRY_SIZE, isamb_close(), ISAMB_MAJOR_VERSION, ISAMB_MAX_LEVEL, ISAMB_MINOR_VERSION_NO_ROOT, ISAMB_MINOR_VERSION_WITH_ROOT, ISAMB_head::last_block, ISAMB_s::log_freelist, ISAMB_s::log_io, ISAMB_s::method, ISAMB_s::minor_version, ISAMB_s::no_cat, ISAMB_s::number_of_int_splits, ISAMB_s::number_of_leaf_splits, ISAMB_block::pos, ISAMB_s::returned_numbers, ISAMB_s::root_ptr, ISAMB_s::skipped_nodes, and ISAMB_s::skipped_numbers.
Referenced by isamb_open(), recindex_open(), and zebra_sort_type().
void isamb_pp_close | ( | ISAMB_PP | pp | ) |
Definition at line 1429 of file isamb.c.
References isamb_pp_close_x().
Referenced by delete_w_all_handle(), r_close(), recindex_read_indx(), rset_trunc_r(), tst_forward(), tst_insert(), tst_random(), zebra_recid_to_sysno(), zebra_record_check(), zebra_sort_close(), and zebra_sortf_rewind().
Definition at line 1392 of file isamb.c.
References ISAMB_s::accessed_nodes, ISAMB_PP_s::accessed_nodes, ISAMB_PP_s::block, close_block(), ISAMB_PP_s::isamb, ISAMB_PP_s::level, ISAMB_PP_s::maxlevel, ISAMB_PP_s::no_blocks, ISAMB_s::returned_numbers, ISAMB_PP_s::returned_numbers, ISAMB_block::size, ISAMB_s::skipped_nodes, ISAMB_PP_s::skipped_nodes, ISAMB_s::skipped_numbers, ISAMB_PP_s::skipped_numbers, ISAMB_PP_s::total_size, and ZINT_FORMAT.
Referenced by inv_stat_handle(), and isamb_pp_close().
int isamb_pp_forward | ( | ISAMB_PP | pp, |
void * | buf, | ||
const void * | untilbuf | ||
) |
Definition at line 1525 of file isamb.c.
References ISAMB_PP_s::block, ISAMB_block::buf, ISAMB_block::bytes, close_block(), ISAMC_M_s::codec, ISAMC_M_s::compare_item, ISAM_CODEC::decode, decode_item_len, decode_ptr(), ISAMB_block::decodeClientData, DST_ITEM_MAX, ISAMB_PP_s::isamb, ISAMB_block::leaf, ISAMB_PP_s::level, ISAMB_s::method, ISAMB_PP_s::no_blocks, ISAMB_block::offset, open_block(), ISAMB_block::pos, ISAM_CODEC::reset, ISAMB_PP_s::returned_numbers, ISAMB_PP_s::scope, ISAMB_block::size, ISAM_CODEC::start, ISAM_CODEC::stop, and ISAMB_PP_s::total_size.
Referenced by isamb_pp_read(), r_forward(), recindex_read_indx(), tst_forward(), zebra_recid_to_sysno(), zebra_record_check(), and zebra_sort_read().
Definition at line 1387 of file isamb.c.
References isamb_pp_open_x(), ISAMB_block::pos, and scope.
Referenced by delete_w_all_handle(), r_open(), recindex_read_indx(), rset_trunc_r(), tst_forward(), tst_insert(), tst_random(), zebra_recid_to_sysno(), zebra_record_check(), and zebra_sort_read().
Definition at line 1345 of file isamb.c.
References ISAMB_PP_s::accessed_nodes, ISAMB_PP_s::block, ISAMB_block::bytes, decode_ptr(), ISAMB_PP_s::isamb, ISAMB_MAX_LEVEL, ISAMB_block::leaf, ISAMB_PP_s::level, ISAMB_PP_s::maxlevel, ISAMB_PP_s::no_blocks, ISAMB_block::offset, open_block(), ISAMB_block::pos, ISAMB_PP_s::pos, ISAMB_PP_s::returned_numbers, ISAMB_PP_s::scope, scope, ISAMB_block::size, ISAMB_PP_s::skipped_nodes, ISAMB_PP_s::skipped_numbers, and ISAMB_PP_s::total_size.
Referenced by inv_stat_handle(), and isamb_pp_open().
void isamb_pp_pos | ( | ISAMB_PP | pp, |
double * | current, | ||
double * | total | ||
) |
Definition at line 1509 of file isamb.c.
References ISAMB_PP_s::block, ISAMB_DEBUG, ISAMB_block::no_items, ISAMB_PP_s::returned_numbers, and ZINT_FORMAT.
Referenced by r_pos().
int isamb_pp_read | ( | ISAMB_PP | pp, |
void * | buf | ||
) |
Definition at line 1503 of file isamb.c.
References ISAMB_block::buf, and isamb_pp_forward().
Referenced by delete_w_all_handle(), inv_stat_handle(), r_read(), r_read_filter(), rset_trunc_r(), tst_insert(), tst_random(), and zebra_recid_to_sysno().
void isamb_set_cache_size | ( | ISAMB | b, |
int | sz | ||
) |
void isamb_set_int_count | ( | ISAMB | b, |
int | v | ||
) |
Definition at line 1674 of file isamb.c.
References ISAMB_s::root_ptr.
Referenced by recindex_close(), and zebra_sort_close().
Definition at line 1225 of file isamb.c.
References ISAMB_block::bytes, close_block(), ISAMC_M_s::codec, ISAM_CODEC::decode, decode_item_len, decode_ptr(), ISAMB_block::deleted, DST_ITEM_MAX, isamb_unlink(), ISAMB_block::leaf, ISAMB_s::method, ISAMB_block::offset, open_block(), ISAMB_block::pos, ISAM_CODEC::reset, ISAMB_block::size, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by delete_w_handle(), isamb_merge(), isamb_unlink(), and tst_forward().