backends/flint/flint_table.h File Reference

#include <xapian/error.h>
#include <xapian/visibility.h>
#include "flint_types.h"
#include "flint_btreebase.h"
#include "flint_cursor.h"
#include "noreturn.h"
#include "str.h"
#include "stringutils.h"
#include "unaligned.h"
#include <algorithm>
#include <string>
#include <zlib.h>

Include dependency graph for flint_table.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Key_
class  Item_base_< T >
class  Item_
class  Item_wr_
class  FlintTable
 Class managing a Btree table in a Flint database. More...

Defines

#define DONT_COMPRESS   -1
#define FLINT_BTREE_MAX_KEY_LEN   252
 The largest possible value of a key_len.
#define BLOCK_CAPACITY   4
 Even for items of at maximum size, it must be possible to get this number of items in a block.
#define BYTES_PER_BLOCK_NUMBER   4
#define K1   1
#define I2   2
#define D2   2
#define C2   2
#define getK(p, c)   getint1(p, c)
#define setD(p, c, x)   setint2(p, c, x)
#define BTREE_CURSOR_LEVELS   10


Define Documentation

#define BLOCK_CAPACITY   4

Even for items of at maximum size, it must be possible to get this number of items in a block.

Definition at line 54 of file flint_table.h.

#define BTREE_CURSOR_LEVELS   10

Definition at line 241 of file flint_table.h.

#define BYTES_PER_BLOCK_NUMBER   4

Definition at line 57 of file flint_table.h.

#define C2   2

Definition at line 72 of file flint_table.h.

#define D2   2

Definition at line 71 of file flint_table.h.

#define DONT_COMPRESS   -1

Definition at line 43 of file flint_table.h.

#define FLINT_BTREE_MAX_KEY_LEN   252

The largest possible value of a key_len.

This gives the upper limit of the size of a key that may be stored in the B-tree (252 bytes with the present implementation).

Definition at line 50 of file flint_table.h.

Referenced by FlintTable::del(), FlintCursor::find_entry(), FlintCursor::find_entry_ge(), Item_wr_::form_key(), FlintTable::get_exact_entry(), and FlintTable::key_exists().

#define getK ( p,
 )     getint1(p, c)

Definition at line 76 of file flint_table.h.

#define I2   2

Definition at line 70 of file flint_table.h.

#define K1   1

Definition at line 69 of file flint_table.h.

#define setD ( p,
c,
 )     setint2(p, c, x)

Definition at line 77 of file flint_table.h.


Documentation for Xapian (version 1.2.8).
Generated on 14 Dec 2011 by Doxygen 1.5.9.