IDZEBRA
2.2.7
|
#include <stdlib.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <yaz/log.h>
#include <yaz/xmalloc.h>
#include <idzebra/isams.h>
Go to the source code of this file.
Data Structures | |
struct | ISAMS_head |
struct | ISAMS_s |
struct | ISAMS_PP_s |
Typedefs | |
typedef unsigned | ISAMS_BLOCK_SIZE |
Functions | |
void | isams_getmethod (ISAMS_M *m) |
ISAMS | isams_open (BFiles bfs, const char *name, int writeflag, ISAMS_M *method) |
int | isams_close (ISAMS is) |
ISAM_P | isams_merge (ISAMS is, ISAMS_I data) |
ISAMS_PP | isams_pp_open (ISAMS is, ISAM_P pos) |
void | isams_pp_close (ISAMS_PP pp) |
int | isams_pp_num (ISAMS_PP pp) |
int | isams_pp_read (ISAMS_PP pp, void *buf) |
int | isams_read_item (ISAMS_PP pp, char **dst) |
typedef unsigned ISAMS_BLOCK_SIZE |
int isams_close | ( | ISAMS | is | ) |
Definition at line 99 of file isams.c.
References ISAMS_s::bf, bf_close(), bf_write(), ISAMS_s::head, ISAMS_s::head_old, ISAMS_head::last_block, ISAMS_head::last_offset, ISAMS_s::merge_buf, and ISAMS_s::method.
Referenced by zebra_register_close().
void isams_getmethod | ( | ISAMS_M * | m | ) |
Definition at line 61 of file isams.c.
References ISAMS_M_s::block_size, ISAMS_M_s::codec, ISAMS_M_s::compare_item, ISAMS_M_s::debug, ISAM_CODEC::decode, ISAM_CODEC::encode, ISAMS_M_s::log_item, ISAM_CODEC::reset, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by key_isams_m().
Definition at line 115 of file isams.c.
References ISAMS_s::bf, bf_write(), ISAMS_s::block_size, ISAMS_I_s::clientData, ISAMS_M_s::codec, ISAMS_s::debug, ISAM_CODEC::encode, ISAMS_s::head, ISAMS_head::last_block, ISAMS_head::last_offset, ISAMS_s::merge_buf, ISAMS_s::method, ISAMS_I_s::read_item, ISAM_CODEC::start, and ISAM_CODEC::stop.
Referenced by heap_inps().
Definition at line 76 of file isams.c.
References ISAMS_s::bf, bf_open(), bf_read(), ISAMS_M_s::block_size, ISAMS_s::block_size, ISAMS_M_s::debug, ISAMS_s::debug, ISAMS_s::head, ISAMS_s::head_old, ISAMS_head::last_block, ISAMS_head::last_offset, ISAMS_s::merge_buf, and ISAMS_s::method.
Referenced by zebra_register_open().
void isams_pp_close | ( | ISAMS_PP | pp | ) |
Definition at line 215 of file isams.c.
References ISAMS_PP_s::buf, ISAMS_M_s::codec, ISAMS_PP_s::decodeClientData, ISAMS_PP_s::is, ISAMS_s::method, and ISAM_CODEC::stop.
Referenced by inv_stat_handle(), r_close(), and rset_trunc_r().
int isams_pp_num | ( | ISAMS_PP | pp | ) |
Definition at line 222 of file isams.c.
References ISAMS_PP_s::numKeys.
Referenced by inv_stat_handle().
Definition at line 187 of file isams.c.
References ISAMS_s::bf, bf_read(), ISAMS_PP_s::block_no, ISAMS_PP_s::block_offset, ISAMS_s::block_size, ISAMS_PP_s::buf, ISAMS_M_s::codec, ISAMS_s::debug, ISAMS_PP_s::decodeClientData, ISAMS_PP_s::is, ISAMS_s::method, ISAMS_PP_s::numKeys, ISAMS_PP_s::numRead, and ISAM_CODEC::start.
Referenced by inv_stat_handle(), r_open(), and rset_trunc_r().
int isams_pp_read | ( | ISAMS_PP | pp, |
void * | buf | ||
) |
Definition at line 227 of file isams.c.
References isams_read_item().
Referenced by inv_stat_handle(), r_read(), and rset_trunc_r().
int isams_read_item | ( | ISAMS_PP | pp, |
char ** | dst | ||
) |
Definition at line 233 of file isams.c.
References ISAMS_s::bf, bf_read(), ISAMS_PP_s::block_no, ISAMS_PP_s::block_offset, ISAMS_s::block_size, ISAMS_PP_s::buf, ISAMS_M_s::codec, ISAM_CODEC::decode, ISAMS_PP_s::decodeClientData, ISAMS_PP_s::is, ISAMS_s::method, ISAMS_PP_s::numKeys, and ISAMS_PP_s::numRead.
Referenced by isams_pp_read().