IDZEBRA 2.2.11
reckeys.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <ctype.h>
#include "reckeys.h"
#include <yaz/nmem.h>
#include <yaz/xmalloc.h>

Go to the source code of this file.

Data Structures

struct  zebra_rec_key_entry
struct  zebra_rec_keys_t_

Functions

struct zebra_rec_key_entry ** zebra_rec_keys_mk_hash (zebra_rec_keys_t p, const char *buf, size_t len, const struct it_key *key)
static void init_hash (zebra_rec_keys_t p)
zebra_rec_keys_t zebra_rec_keys_open (void)
void zebra_rec_keys_set_buf (zebra_rec_keys_t p, char *buf, size_t sz, int copy_buf)
void zebra_rec_keys_get_buf (zebra_rec_keys_t p, char **buf, size_t *sz)
void zebra_rec_keys_close (zebra_rec_keys_t p)
int zebra_rec_keys_add_hash (zebra_rec_keys_t keys, const char *str, size_t slen, const struct it_key *key)
void zebra_rec_keys_write (zebra_rec_keys_t keys, const char *str, size_t slen, const struct it_key *key)
void zebra_rec_keys_reset (zebra_rec_keys_t keys)
int zebra_rec_keys_rewind (zebra_rec_keys_t keys)
int zebra_rec_keys_empty (zebra_rec_keys_t keys)
int zebra_rec_keys_read (zebra_rec_keys_t keys, const char **str, size_t *slen, struct it_key *key)
zint zebra_rec_keys_get_custom_record_id (zebra_rec_keys_t keys)

Function Documentation

◆ init_hash()

void init_hash ( zebra_rec_keys_t p)
static

◆ zebra_rec_keys_add_hash()

int zebra_rec_keys_add_hash ( zebra_rec_keys_t keys,
const char * str,
size_t slen,
const struct it_key * key )

◆ zebra_rec_keys_close()

◆ zebra_rec_keys_empty()

int zebra_rec_keys_empty ( zebra_rec_keys_t keys)

Definition at line 252 of file reckeys.c.

References zebra_rec_keys_t_::buf_used.

Referenced by perform_facet_index(), and zebra_extract_record_stream().

◆ zebra_rec_keys_get_buf()

void zebra_rec_keys_get_buf ( zebra_rec_keys_t p,
char ** buf,
size_t * sz )

◆ zebra_rec_keys_get_custom_record_id()

zint zebra_rec_keys_get_custom_record_id ( zebra_rec_keys_t keys)

Definition at line 286 of file reckeys.c.

References zebra_rec_keys_t_::custom_record_id.

Referenced by zebra_extract_record_stream().

◆ zebra_rec_keys_mk_hash()

struct zebra_rec_key_entry ** zebra_rec_keys_mk_hash ( zebra_rec_keys_t p,
const char * buf,
size_t len,
const struct it_key * key )

◆ zebra_rec_keys_open()

◆ zebra_rec_keys_read()

◆ zebra_rec_keys_reset()

void zebra_rec_keys_reset ( zebra_rec_keys_t keys)

◆ zebra_rec_keys_rewind()

◆ zebra_rec_keys_set_buf()

◆ zebra_rec_keys_write()