xapian-core
1.4.26
|
#include <glass_version.h>
Public Member Functions | |
void | init (unsigned blocksize_, uint4 compress_min_) |
void | serialise (std::string &s) const |
bool | unserialise (const char **p, const char *end) |
glass_block_t | get_root () const |
int | get_level () const |
glass_tablesize_t | get_num_entries () const |
bool | get_root_is_fake () const |
bool | get_sequential () const |
unsigned | get_blocksize () const |
uint4 | get_compress_min () const |
const std::string & | get_free_list () const |
void | set_level (int level_) |
void | set_num_entries (glass_tablesize_t n) |
void | set_root_is_fake (bool f) |
void | set_sequential (bool f) |
void | set_root (glass_block_t root_) |
void | set_blocksize (unsigned b) |
void | set_free_list (const std::string &s) |
Private Attributes | |
glass_block_t | root |
unsigned | level |
glass_tablesize_t | num_entries |
bool | root_is_fake |
bool | sequential |
unsigned | blocksize |
uint4 | compress_min |
Should be >= 4 or 0 for no compression. More... | |
std::string | fl_serialised |
Definition at line 41 of file glass_version.h.
|
inline |
Definition at line 64 of file glass_version.h.
References AssertRel, and blocksize.
Referenced by GlassTable::cancel(), GlassTable::create_and_open(), GlassCompact::multimerge_postlists(), and GlassTable::open().
|
inline |
Definition at line 68 of file glass_version.h.
References compress_min.
Referenced by GlassTable::basic_open(), and GlassTable::create_and_open().
|
inline |
Definition at line 69 of file glass_version.h.
References fl_serialised.
Referenced by GlassTable::basic_open(), GlassTable::cancel(), and GlassDatabase::compact().
|
inline |
Definition at line 60 of file glass_version.h.
Referenced by GlassTable::basic_open(), and GlassTable::cancel().
|
inline |
Definition at line 61 of file glass_version.h.
References num_entries.
Referenced by GlassTable::basic_open(), and GlassTable::cancel().
|
inline |
Definition at line 59 of file glass_version.h.
References root.
Referenced by GlassTable::basic_open(), GlassTable::cancel(), and GlassTable::open().
|
inline |
Definition at line 62 of file glass_version.h.
References root_is_fake.
Referenced by GlassTable::basic_open(), and GlassTable::cancel().
|
inline |
Definition at line 63 of file glass_version.h.
References sequential.
Referenced by GlassTable::basic_open(), and GlassTable::cancel().
void Glass::RootInfo::init | ( | unsigned | blocksize_, |
uint4 | compress_min_ | ||
) |
Definition at line 409 of file glass_version.cc.
References AssertRel, and GlassVersion::root.
Referenced by GlassTable::add(), GlassVersion::create(), and GlassCompact::multimerge_postlists().
void Glass::RootInfo::serialise | ( | std::string & | s | ) | const |
Definition at line 423 of file glass_version.cc.
References pack_string(), pack_uint(), and GlassVersion::root.
Referenced by GlassVersion::write().
|
inline |
Definition at line 76 of file glass_version.h.
References AssertRel.
Referenced by GlassTable::commit().
|
inline |
Definition at line 80 of file glass_version.h.
Referenced by GlassTable::commit(), and GlassDatabase::compact().
|
inline |
Definition at line 71 of file glass_version.h.
Referenced by GlassTable::commit().
|
inline |
Definition at line 72 of file glass_version.h.
Referenced by GlassTable::commit().
|
inline |
Definition at line 75 of file glass_version.h.
Referenced by GlassTable::commit().
|
inline |
Definition at line 73 of file glass_version.h.
Referenced by GlassTable::commit().
|
inline |
Definition at line 74 of file glass_version.h.
Referenced by GlassTable::commit().
bool Glass::RootInfo::unserialise | ( | const char ** | p, |
const char * | end | ||
) |
Definition at line 437 of file glass_version.cc.
References COMPRESS_MIN, GLASS_BTREE_CURSOR_LEVELS, GLASS_MAX_BLOCKSIZE, GLASS_MIN_BLOCKSIZE, rare, GlassVersion::root, unpack_string(), and unpack_uint().
|
private |
Definition at line 47 of file glass_version.h.
Referenced by get_blocksize(), and GlassVersion::GlassVersion().
|
private |
Should be >= 4 or 0 for no compression.
Definition at line 49 of file glass_version.h.
Referenced by get_compress_min().
|
private |
Definition at line 50 of file glass_version.h.
Referenced by get_free_list().
|
private |
Definition at line 43 of file glass_version.h.
|
private |
Definition at line 44 of file glass_version.h.
Referenced by get_num_entries().
|
private |
Definition at line 42 of file glass_version.h.
Referenced by get_root().
|
private |
Definition at line 45 of file glass_version.h.
Referenced by get_root_is_fake().
|
private |
Definition at line 46 of file glass_version.h.
Referenced by get_sequential().