IDZEBRA  2.2.7
Data Fields
CFile_struct Struct Reference

All in-memory information per CFile. More...

#include <cfile.h>

Data Fields

struct CFile_head head
 
MFile block_mf
 
MFile hash_mf
 
zintarray
 
struct CFile_hash_bucket ** parray
 
struct CFile_hash_bucketbucket_lru_front
 
struct CFile_hash_bucketbucket_lru_back
 
int dirty
 
zint bucket_in_memory
 
zint max_bucket_in_memory
 
char * iobuf
 
MFile rmf
 
int no_hits
 
int no_miss
 
Zebra_mutex mutex
 

Detailed Description

All in-memory information per CFile.

Definition at line 68 of file cfile.h.

Field Documentation

◆ array

zint* CFile_struct::array

array for hash

Definition at line 74 of file cfile.h.

Referenced by cf_close(), cf_lookup_hash(), cf_moveto_flat(), cf_new_hash(), cf_open(), read_head(), and write_head().

◆ block_mf

MFile CFile_struct::block_mf

block meta file

Definition at line 72 of file cfile.h.

Referenced by cf_close(), cf_commit_flat(), cf_commit_hash(), cf_open(), cf_read(), and cf_write().

◆ bucket_in_memory

zint CFile_struct::bucket_in_memory

number of buckets in memory

Definition at line 79 of file cfile.h.

Referenced by alloc_bucket(), cf_close(), cf_commit(), cf_moveto_flat(), cf_open(), and release_bucket().

◆ bucket_lru_back

struct CFile_hash_bucket* CFile_struct::bucket_lru_back

LRU back for hash

Definition at line 77 of file cfile.h.

Referenced by alloc_bucket(), cf_lookup_hash(), cf_new_hash(), cf_open(), flush_bucket(), and release_bucket().

◆ bucket_lru_front

struct CFile_hash_bucket* CFile_struct::bucket_lru_front

LRU front for hash

Definition at line 76 of file cfile.h.

Referenced by alloc_bucket(), cf_open(), and release_bucket().

◆ dirty

int CFile_struct::dirty

whether CFile is dirty / header must be rewritten

Definition at line 78 of file cfile.h.

Referenced by cf_close(), cf_moveto_flat(), cf_open(), cf_write_flat(), and flush_bucket().

◆ hash_mf

MFile CFile_struct::hash_mf

hash or index file (depending on state)

Definition at line 73 of file cfile.h.

Referenced by cf_close(), cf_commit_flat(), cf_commit_hash(), cf_lookup_flat(), cf_moveto_flat(), cf_open(), cf_write_flat(), flush_bucket(), get_bucket(), read_head(), and write_head().

◆ head

struct CFile_head CFile_struct::head

◆ iobuf

char* CFile_struct::iobuf

data block .. of size block size

Definition at line 81 of file cfile.h.

Referenced by cf_close(), cf_commit_flat(), cf_commit_hash(), cf_open(), and cf_write().

◆ max_bucket_in_memory

zint CFile_struct::max_bucket_in_memory

max number of buckets in memory

Definition at line 80 of file cfile.h.

Referenced by alloc_bucket(), and cf_open().

◆ mutex

Zebra_mutex CFile_struct::mutex

Definition at line 85 of file cfile.h.

Referenced by cf_close(), cf_open(), cf_read(), and cf_write().

◆ no_hits

int CFile_struct::no_hits

number of bucket cache hits

Definition at line 83 of file cfile.h.

Referenced by cf_close(), cf_lookup_hash(), cf_moveto_flat(), cf_new(), cf_new_hash(), and cf_open().

◆ no_miss

int CFile_struct::no_miss

number of bucket cache misses

Definition at line 84 of file cfile.h.

Referenced by cf_close(), cf_lookup_hash(), cf_moveto_flat(), cf_new(), cf_new_hash(), and cf_open().

◆ parray

struct CFile_hash_bucket** CFile_struct::parray

holds all hash bucket in memory

Definition at line 75 of file cfile.h.

Referenced by alloc_bucket(), cf_close(), cf_lookup_hash(), cf_moveto_flat(), cf_new_hash(), and cf_open().

◆ rmf

MFile CFile_struct::rmf

read meta file (original data / not dirty)

Definition at line 82 of file cfile.h.

Referenced by cf_commit_flat(), cf_commit_hash(), cf_moveto_flat(), cf_open(), and cf_write().


The documentation for this struct was generated from the following file: