xapian-core
1.4.27
|
Definitions, types, etc for use inside glass. More...
#include "internaltypes.h"
Go to the source code of this file.
Namespaces | |
Glass | |
Macros | |
#define | GLASS_TABLE_EXTENSION "glass" |
Glass table extension. More... | |
#define | GLASS_DEFAULT_BLOCKSIZE 8192 |
Default B-tree block size. More... | |
#define | GLASS_MIN_BLOCKSIZE 2048 |
Minimum B-tree block size. More... | |
#define | GLASS_MAX_BLOCKSIZE 65536 |
Maximum B-tree block size. More... | |
#define | GLASS_BTREE_CURSOR_LEVELS 10 |
Allow for this many levels in the B-tree. More... | |
#define | GLASS_MAX_DOCID Xapian::docid(0xffffffffffffffff) |
The largest docid value supported by glass. More... | |
Typedefs | |
typedef uint4 | glass_block_t |
A block number in a glass Btree file. More... | |
typedef uint4 | glass_revision_number_t |
The revision number of a glass database. More... | |
typedef unsigned long long | glass_tablesize_t |
How many entries there are in a table. More... | |
Enumerations | |
enum | Glass::table_type { Glass::POSTLIST, Glass::DOCDATA, Glass::TERMLIST, Glass::POSITION, Glass::SPELLING, Glass::SYNONYM, Glass::MAX_ } |
Definitions, types, etc for use inside glass.
Definition in file glass_defs.h.
#define GLASS_BTREE_CURSOR_LEVELS 10 |
Allow for this many levels in the B-tree.
With 10, overflow is practically impossible. FIXME: but we want it to be completely impossible...
Definition at line 43 of file glass_defs.h.
Referenced by GlassTable::split_root(), and Glass::RootInfo::unserialise().
#define GLASS_DEFAULT_BLOCKSIZE 8192 |
Default B-tree block size.
Definition at line 30 of file glass_defs.h.
Referenced by GlassDatabase::compact(), and GlassDatabase::GlassDatabase().
#define GLASS_MAX_BLOCKSIZE 65536 |
Maximum B-tree block size.
Definition at line 36 of file glass_defs.h.
Referenced by Glass::RootInfo::unserialise().
#define GLASS_MAX_DOCID Xapian::docid(0xffffffffffffffff) |
The largest docid value supported by glass.
The disk format supports 64-bit docids, but if Xapian::docid is narrower then it's the largest value supported by the type that matters here.
Definition at line 50 of file glass_defs.h.
Referenced by GlassWritableDatabase::add_document(), GlassPostListTable::get_used_docid_range(), and Glass::ValueUpdater::update().
#define GLASS_MIN_BLOCKSIZE 2048 |
Minimum B-tree block size.
Definition at line 33 of file glass_defs.h.
Referenced by test_if_single_file_db(), and Glass::RootInfo::unserialise().
#define GLASS_TABLE_EXTENSION "glass" |
Glass table extension.
Definition at line 27 of file glass_defs.h.
Referenced by Xapian::Database::check_(), check_glass_table(), GlassDatabase::compact(), GlassTable::create_and_open(), GlassTable::do_open_to_read(), GlassTable::do_open_to_write(), GlassTable::exists(), GlassTable::get_path(), main(), and GlassDatabase::send_whole_database().
typedef uint4 glass_block_t |
A block number in a glass Btree file.
Definition at line 65 of file glass_defs.h.
typedef uint4 glass_revision_number_t |
The revision number of a glass database.
Definition at line 68 of file glass_defs.h.
typedef unsigned long long glass_tablesize_t |
How many entries there are in a table.
Definition at line 71 of file glass_defs.h.