IDZEBRA
2.2.7
|
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <yaz/xmalloc.h>
#include <yaz/snprintf.h>
#include <it_key.h>
Go to the source code of this file.
Data Structures | |
struct | iscz1_code_info |
Macros | |
#define | CODEC_INLINE |
Functions | |
void | key_logdump_txt (int logmask, const void *p, const char *txt) |
void | key_logdump (int logmask, const void *p) |
char * | key_print_it (const void *p, char *buf) |
int | key_compare (const void *p1, const void *p2) |
zint | key_get_seq (const void *p) |
zint | key_get_segment (const void *p) |
int | key_qsort_compare (const void *p1, const void *p2) |
void * | iscz1_start (void) |
void | key_init (struct it_key *key) |
void | iscz1_reset (void *vp) |
void | iscz1_stop (void *p) |
static CODEC_INLINE void | iscz1_encode_int (zint d, char **dst) |
static CODEC_INLINE zint | iscz1_decode_int (unsigned char **src) |
void | iscz1_encode (void *vp, char **dst, const char **src) |
void | iscz1_decode (void *vp, char **dst, const char **src) |
void iscz1_decode | ( | void * | vp, |
char ** | dst, | ||
const char ** | src | ||
) |
Definition at line 238 of file it_key.c.
Referenced by encode_key_write(), key_file_read(), key_isamc_m(), key_isams_m(), main(), and zebra_rec_keys_read().
|
static |
void iscz1_encode | ( | void * | vp, |
char ** | dst, | ||
const char ** | src | ||
) |
Definition at line 190 of file it_key.c.
References iscz1_encode_int(), IT_KEY_LEVEL_MAX, iscz1_code_info::key, it_key::len, and it_key::mem.
Referenced by encode_key_write(), key_isamc_m(), key_isams_m(), main(), and zebra_rec_keys_write().
|
static |
Definition at line 161 of file it_key.c.
Referenced by iscz1_encode().
void iscz1_reset | ( | void * | vp | ) |
Definition at line 146 of file it_key.c.
References IT_KEY_LEVEL_MAX, iscz1_code_info::key, it_key::len, and it_key::mem.
Referenced by iscz1_start(), key_file_read(), key_isamc_m(), key_isams_m(), main(), zebra_rec_keys_reset(), and zebra_rec_keys_rewind().
void* iscz1_start | ( | void | ) |
Definition at line 130 of file it_key.c.
References iscz1_reset().
Referenced by encode_key_init(), key_file_init(), key_isamc_m(), key_isams_m(), main(), and zebra_rec_keys_open().
void iscz1_stop | ( | void * | p | ) |
Definition at line 155 of file it_key.c.
Referenced by encode_key_flush(), key_file_destroy(), key_isamc_m(), key_isams_m(), main(), and zebra_rec_keys_close().
int key_compare | ( | const void * | p1, |
const void * | p2 | ||
) |
Definition at line 74 of file it_key.c.
References it_key::len, and it_key::mem.
Referenced by extract_flush_record_keys2(), heap_cread_item2(), key_isamc_m(), key_isams_m(), key_qsort_compare(), main(), rset_trunc_r(), zebra_key_control_create(), zebra_rec_keys_add_hash(), and zebra_record_check().
zint key_get_segment | ( | const void * | p | ) |
Definition at line 104 of file it_key.c.
References it_key::len, and it_key::mem.
Referenced by zebra_key_control_create().
zint key_get_seq | ( | const void * | p | ) |
Definition at line 97 of file it_key.c.
References it_key::len, and it_key::mem.
Referenced by zebra_key_control_create().
void key_init | ( | struct it_key * | key | ) |
Definition at line 138 of file it_key.c.
References IT_KEY_LEVEL_MAX, iscz1_code_info::key, it_key::len, and it_key::mem.
void key_logdump | ( | int | logmask, |
const void * | p | ||
) |
Definition at line 63 of file it_key.c.
References key_logdump_txt().
void key_logdump_txt | ( | int | logmask, |
const void * | p, | ||
const char * | txt | ||
) |
Definition at line 38 of file it_key.c.
References IT_KEY_LEVEL_MAX, it_key::len, it_key::mem, and ZINT_FORMAT.
Referenced by encode_key_write(), key_isamc_m(), key_isams_m(), key_logdump(), main(), resultSetRank(), resultSetSortSingle(), rset_default_read(), zebra_key_control_create(), and zebra_record_check().
int key_qsort_compare | ( | const void * | p1, |
const void * | p2 | ||
) |
Definition at line 111 of file it_key.c.
References key_compare().
Referenced by key_block_flush_int(), and zebra_index_merge().