libjf API reference guide

Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

jf_cache_file_t Struct Reference

#include <jf_cache_file.h>


Data Fields

jf_cache_file_elem_sarray
jf_offset_t bytes
jf_offset_t limit
jf_offset_t size


Detailed Description

This object type is used to cache a journaled file: caching is not performed to speed-up read operations, but to reduce journal sync point: every journal file synchronization is a time consuming operation

Definition at line 114 of file jf_cache_file.h.


Field Documentation

struct jf_cache_file_elem_s* jf_cache_file_t::array
 

Array of element records Definition at line 132 of file jf_cache_file.h.

Referenced by jf_cache_file_chunk_get_content(), jf_cache_file_chunk_get_range(), jf_cache_file_chunk_get_size(), jf_cache_file_chunk_is_used(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_destroy(), jf_cache_file_get_free_ranges(), jf_cache_file_get_last_pos(), jf_cache_file_get_used_ranges(), jf_cache_file_init(), jf_cache_file_is_empty(), jf_cache_file_is_safe(), jf_cache_file_merge(), jf_cache_file_reset(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_content(), jf_cache_file_set_last_pos(), jf_cache_file_split(), and jf_cache_file_trace().

jf_offset_t jf_cache_file_t::bytes
 

Number of bytes used by this object: the value is the sum of this struct size plus the size of cache records Definition at line 119 of file jf_cache_file.h.

Referenced by jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_init(), jf_cache_file_limit_exceeded(), jf_cache_file_merge(), jf_cache_file_reset(), jf_cache_file_resize(), jf_cache_file_split(), and jf_cache_file_trace().

jf_offset_t jf_cache_file_t::limit
 

Desired size limit: it's set up during initialization and can be checked at any time Definition at line 128 of file jf_cache_file.h.

Referenced by jf_cache_file_get_limit(), jf_cache_file_limit_exceeded(), jf_cache_file_reset(), and jf_cache_file_set_limit().

jf_offset_t jf_cache_file_t::size
 

Number of records currently stored in cache file Definition at line 123 of file jf_cache_file.h.

Referenced by jf_cache_file_chunk_get_content(), jf_cache_file_chunk_get_range(), jf_cache_file_chunk_get_size(), jf_cache_file_chunk_is_used(), jf_cache_file_chunk_prepare(), jf_cache_file_chunk_set_content(), jf_cache_file_destroy(), jf_cache_file_get_last_pos(), jf_cache_file_get_size(), jf_cache_file_init(), jf_cache_file_is_empty(), jf_cache_file_is_safe(), jf_cache_file_merge(), jf_cache_file_reset(), jf_cache_file_resize(), jf_cache_file_search_hint(), jf_cache_file_set_last_pos(), jf_cache_file_split(), and jf_cache_file_trace().


The documentation for this struct was generated from the following file:
Copyright 2005 © Tiian