#include <config.h>#include "flint_table.h"#include <xapian/error.h>#include "safeerrno.h"#include "omassert.h"#include "stringutils.h"#include <sys/types.h>#include <cstdio>#include <cstring>#include <climits>#include "flint_btreebase.h"#include "flint_cursor.h"#include "flint_utils.h"#include "debuglog.h"#include "io_utils.h"#include "str.h"#include "unaligned.h"#include "utils.h"#include <algorithm>#include <string>

Go to the source code of this file.
Defines | |
| #define | REVISION(b) static_cast<unsigned int>(getint4(b, 0)) |
| #define | GET_LEVEL(b) getint1(b, 4) |
| #define | MAX_FREE(b) getint2(b, 5) |
| #define | TOTAL_FREE(b) getint2(b, 7) |
| #define | DIR_END(b) getint2(b, 9) |
| #define | DIR_START 11 |
| #define | SET_REVISION(b, x) setint4(b, 0, x) |
| #define | SET_LEVEL(b, x) setint1(b, 4, x) |
| #define | SET_MAX_FREE(b, x) setint2(b, 5, x) |
| #define | SET_TOTAL_FREE(b, x) setint2(b, 7, x) |
| #define | SET_DIR_END(b, x) setint2(b, 9, x) |
| #define | SEQ_START_POINT (-10) |
| Flip to sequential addition block-splitting after this number of observed sequential additions (in negated form). | |
| #define | BYTE_PAIR_RANGE (1 << 2 * CHAR_BIT) |
Functions | |
| static byte * | zeroed_new (size_t size) |
Variables | |
| const size_t | COMPRESS_MIN = 4 |
| #define BYTE_PAIR_RANGE (1 << 2 * CHAR_BIT) |
Definition at line 199 of file flint_table.cc.
| #define DIR_END | ( | b | ) | getint2(b, 9) |
Definition at line 172 of file flint_table.cc.
| #define DIR_START 11 |
Definition at line 173 of file flint_table.cc.
| #define GET_LEVEL | ( | b | ) | getint1(b, 4) |
Definition at line 169 of file flint_table.cc.
| #define MAX_FREE | ( | b | ) | getint2(b, 5) |
Definition at line 170 of file flint_table.cc.
| #define REVISION | ( | b | ) | static_cast<unsigned int>(getint4(b, 0)) |
Definition at line 168 of file flint_table.cc.
| #define SEQ_START_POINT (-10) |
Flip to sequential addition block-splitting after this number of observed sequential additions (in negated form).
Definition at line 183 of file flint_table.cc.
| #define SET_DIR_END | ( | b, | |||
| x | ) | setint2(b, 9, x) |
Definition at line 179 of file flint_table.cc.
| #define SET_LEVEL | ( | b, | |||
| x | ) | setint1(b, 4, x) |
Definition at line 176 of file flint_table.cc.
| #define SET_MAX_FREE | ( | b, | |||
| x | ) | setint2(b, 5, x) |
Definition at line 177 of file flint_table.cc.
| #define SET_REVISION | ( | b, | |||
| x | ) | setint4(b, 0, x) |
Definition at line 175 of file flint_table.cc.
| #define SET_TOTAL_FREE | ( | b, | |||
| x | ) | setint2(b, 7, x) |
Definition at line 178 of file flint_table.cc.
| #define TOTAL_FREE | ( | b | ) | getint2(b, 7) |
Definition at line 171 of file flint_table.cc.
| static byte* zeroed_new | ( | size_t | size | ) | [inline, static] |
Definition at line 112 of file flint_table.cc.
References Assert.
Referenced by FlintTable::basic_open(), FlintTable::do_open_to_write(), and FlintTable::split_root().
| const size_t COMPRESS_MIN = 4 |
Definition at line 87 of file flint_table.cc.