IDZEBRA  2.2.7
Typedefs | Functions
isamb.h File Reference
#include <idzebra/bfile.h>
#include <idzebra/isamc.h>

Go to the source code of this file.

Typedefs

typedef struct ISAMB_sISAMB
 
typedef struct ISAMB_PP_sISAMB_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 Documentation

◆ ISAMB

typedef struct ISAMB_s* ISAMB

Definition at line 28 of file isamb.h.

◆ ISAMB_PP

typedef struct ISAMB_PP_s* ISAMB_PP

Definition at line 29 of file isamb.h.

Function Documentation

◆ isamb_block_info()

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().

◆ isamb_close()

void isamb_close ( ISAMB  isamb)

◆ isamb_dump()

void isamb_dump ( ISAMB  b,
ISAM_P  pos,
void(*)(const char *str)  pr 
)

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().

◆ isamb_get_int_splits()

zint isamb_get_int_splits ( ISAMB  b)

Definition at line 1659 of file isamb.c.

References ISAMB_s::number_of_int_splits.

Referenced by index_block_flush().

◆ isamb_get_leaf_splits()

zint isamb_get_leaf_splits ( ISAMB  b)

Definition at line 1664 of file isamb.c.

References ISAMB_s::number_of_leaf_splits.

Referenced by index_block_flush().

◆ isamb_get_root_ptr()

zint isamb_get_root_ptr ( ISAMB  b)

Definition at line 1669 of file isamb.c.

References ISAMB_s::root_ptr.

Referenced by recindex_open(), and zebra_sort_type().

◆ isamb_merge()

void isamb_merge ( ISAMB  b,
ISAM_P pos,
ISAMC_I data 
)

◆ isamb_open()

ISAMB isamb_open ( BFiles  bfs,
const char *  name,
int  writeflag,
ISAMC_M method,
int  cache 
)

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_open2()

ISAMB isamb_open2 ( BFiles  bfs,
const char *  name,
int  writeflag,
ISAMC_M method,
int  cache,
int  no_cat,
int *  sizes,
int  use_root_ptr 
)

◆ isamb_pp_close()

void isamb_pp_close ( ISAMB_PP  pp)

◆ isamb_pp_close_x()

void isamb_pp_close_x ( ISAMB_PP  pp,
zint size,
zint blocks 
)

◆ isamb_pp_forward()

int isamb_pp_forward ( ISAMB_PP  pp,
void *  buf,
const void *  untilbuf 
)

◆ isamb_pp_open()

ISAMB_PP isamb_pp_open ( ISAMB  isamb,
ISAM_P  pos,
int  scope 
)

◆ isamb_pp_open_x()

ISAMB_PP isamb_pp_open_x ( ISAMB  isamb,
ISAM_P  pos,
int *  level,
int  scope 
)

◆ isamb_pp_pos()

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().

◆ isamb_pp_read()

int isamb_pp_read ( ISAMB_PP  pp,
void *  buf 
)

◆ isamb_set_cache_size()

void isamb_set_cache_size ( ISAMB  b,
int  sz 
)

Definition at line 200 of file isamb.c.

References ISAMB_s::cache_size.

Referenced by main().

◆ isamb_set_int_count()

void isamb_set_int_count ( ISAMB  b,
int  v 
)

Definition at line 195 of file isamb.c.

References ISAMB_s::enable_int_count.

Referenced by main().

◆ isamb_set_root_ptr()

void isamb_set_root_ptr ( ISAMB  b,
zint  root_ptr 
)

Definition at line 1674 of file isamb.c.

References ISAMB_s::root_ptr.

Referenced by recindex_close(), and zebra_sort_close().

◆ isamb_unlink()

int isamb_unlink ( ISAMB  b,
ISAM_P  pos 
)