#include <chert_table.h>


Public Member Functions | |
| Item_wr (byte *p_, int c) | |
| Item_wr (byte *p_) | |
| void | set_component_of (int i) |
| void | set_components_of (int m) |
| void | set_key_and_block (Key newkey, int truncate_size, uint4 n) |
| void | set_block_given_by (uint4 n) |
| Set this item's tag to point to block n (this block should not be at level 0). | |
| void | set_size (int l) |
| void | form_null_key (uint4 n) |
| Form an item with a null key and with block number n in the tag. | |
| void | form_key (const std::string &key_) |
| void | set_tag (int cd, const char *start, int len, bool compressed) |
| void | fake_root_item () |
Private Member Functions | |
| void | set_key_len (int x) |
Definition at line 183 of file chert_table.h.
| Item_wr::Item_wr | ( | byte * | p_, | |
| int | c | |||
| ) | [inline] |
Definition at line 187 of file chert_table.h.
| Item_wr::Item_wr | ( | byte * | p_ | ) | [inline] |
Definition at line 188 of file chert_table.h.
| void Item_wr::fake_root_item | ( | ) | [inline] |
Definition at line 256 of file chert_table.h.
References C2, I2, K1, set_component_of(), set_components_of(), set_key_len(), and set_size().
| void Item_wr::form_key | ( | const std::string & | key_ | ) | [inline] |
Definition at line 233 of file chert_table.h.
References C2, CHERT_BTREE_MAX_KEY_LEN, I2, K1, Item_base< T >::p, set_component_of(), set_key_len(), Xapian::Internal::str(), and STRINGIZE.
Referenced by ChertTable::form_key().
| void Item_wr::form_null_key | ( | uint4 | n | ) | [inline] |
Form an item with a null key and with block number n in the tag.
Definition at line 228 of file chert_table.h.
References BYTES_PER_BLOCK_NUMBER, I2, K1, Item_base< T >::p, set_key_len(), set_size(), and setint4().
Referenced by ChertTable::split_root().
| void Item_wr::set_block_given_by | ( | uint4 | n | ) | [inline] |
Set this item's tag to point to block n (this block should not be at level 0).
Definition at line 219 of file chert_table.h.
References BYTES_PER_BLOCK_NUMBER, Item_base< T >::p, setint4(), and Item_base< T >::size().
| void Item_wr::set_component_of | ( | int | i | ) | [inline] |
Definition at line 189 of file chert_table.h.
References C2, getK, I2, Item_base< T >::p, and setint2().
Referenced by ChertTable::add(), ChertTable::del(), fake_root_item(), and form_key().
| void Item_wr::set_components_of | ( | int | m | ) | [inline] |
Definition at line 192 of file chert_table.h.
References getK, I2, Item_base< T >::p, and setint2().
Referenced by ChertTable::add(), and fake_root_item().
| void Item_wr::set_key_and_block | ( | Key | newkey, | |
| int | truncate_size, | |||
| uint4 | n | |||
| ) | [inline] |
Definition at line 196 of file chert_table.h.
References AssertRel, BYTES_PER_BLOCK_NUMBER, C2, Key::get_address(), I2, K1, Key::length(), Item_base< T >::p, setint1(), setint2(), and setint4().
Referenced by ChertTable::enter_key().
| void Item_wr::set_key_len | ( | int | x | ) | [inline, private] |
Definition at line 184 of file chert_table.h.
References I2, Item_base< T >::p, and setint1().
Referenced by fake_root_item(), form_key(), and form_null_key().
| void Item_wr::set_size | ( | int | l | ) | [inline] |
Definition at line 222 of file chert_table.h.
References AssertRel, Item_base< T >::p, and setint2().
Referenced by fake_root_item(), form_null_key(), and set_tag().
| void Item_wr::set_tag | ( | int | cd, | |
| const char * | start, | |||
| int | len, | |||
| bool | compressed | |||
| ) | [inline] |
Definition at line 251 of file chert_table.h.
References Item_base< T >::p, and set_size().
Referenced by ChertTable::add().