Classes | |
| class | PostlistCursor |
| class | PostlistCursorGt |
| struct | MergeCursor |
| struct | CursorGt |
Functions | |
| static bool | is_metainfo_key (const string &key) |
| static bool | is_user_metadata_key (const string &key) |
| static bool | is_valuestats_key (const string &key) |
| static bool | is_valuechunk_key (const string &key) |
| static bool | is_doclenchunk_key (const string &key) |
| static string | encode_valuestats (Xapian::doccount freq, const string &lbound, const string &ubound) |
| static void | merge_postlists (Xapian::Compactor &compactor, BrassTable *out, vector< Xapian::docid >::const_iterator offset, vector< string >::const_iterator b, vector< string >::const_iterator e, Xapian::docid last_docid) |
| static void | merge_spellings (BrassTable *out, vector< string >::const_iterator b, vector< string >::const_iterator e) |
| static void | merge_synonyms (BrassTable *out, vector< string >::const_iterator b, vector< string >::const_iterator e) |
| static void | multimerge_postlists (Xapian::Compactor &compactor, BrassTable *out, const char *tmpdir, Xapian::docid last_docid, vector< string > tmp, vector< Xapian::docid > off) |
| static void | merge_docid_keyed (const char *tablename, BrassTable *out, const vector< string > &inputs, const vector< Xapian::docid > &offset, bool lazy) |
| static string BrassCompact::encode_valuestats | ( | Xapian::doccount | freq, | |
| const string & | lbound, | |||
| const string & | ubound | |||
| ) | [static] |
Definition at line 184 of file brass_compact.cc.
References pack_string(), and pack_uint().
Referenced by merge_postlists().
| static bool BrassCompact::is_doclenchunk_key | ( | const string & | key | ) | [inline, static] |
Definition at line 78 of file brass_compact.cc.
Referenced by merge_postlists(), and BrassCompact::PostlistCursor::next().
| static bool BrassCompact::is_metainfo_key | ( | const string & | key | ) | [inline, static] |
Definition at line 54 of file brass_compact.cc.
Referenced by merge_postlists(), and BrassCompact::PostlistCursor::next().
| static bool BrassCompact::is_user_metadata_key | ( | const string & | key | ) | [inline, static] |
Definition at line 60 of file brass_compact.cc.
Referenced by merge_postlists(), and BrassCompact::PostlistCursor::next().
| static bool BrassCompact::is_valuechunk_key | ( | const string & | key | ) | [inline, static] |
Definition at line 72 of file brass_compact.cc.
Referenced by merge_postlists(), and BrassCompact::PostlistCursor::next().
| static bool BrassCompact::is_valuestats_key | ( | const string & | key | ) | [inline, static] |
Definition at line 66 of file brass_compact.cc.
Referenced by merge_postlists(), and BrassCompact::PostlistCursor::next().
| static void BrassCompact::merge_docid_keyed | ( | const char * | tablename, | |
| BrassTable * | out, | |||
| const vector< string > & | inputs, | |||
| const vector< Xapian::docid > & | offset, | |||
| bool | lazy | |||
| ) | [static] |
Definition at line 732 of file brass_compact.cc.
References BrassTable::add(), BrassCursor::current_key, BrassCursor::current_tag, DONT_COMPRESS, BrassTable::empty(), BrassCursor::find_entry(), BrassCursor::next(), BrassTable::open(), pack_uint_preserving_sort(), BrassCursor::read_tag(), and unpack_uint_preserving_sort().
Referenced by compact_brass(), compact_chert(), and compact_flint().
| static void BrassCompact::merge_postlists | ( | Xapian::Compactor & | compactor, | |
| BrassTable * | out, | |||
| vector< Xapian::docid >::const_iterator | offset, | |||
| vector< string >::const_iterator | b, | |||
| vector< string >::const_iterator | e, | |||
| Xapian::docid | last_docid | |||
| ) | [static] |
Definition at line 198 of file brass_compact.cc.
References BrassTable::add(), Assert, BrassCompact::PostlistCursor::cf, BrassTable::empty(), encode_valuestats(), BrassCompact::PostlistCursor::firstdid, is_doclenchunk_key(), is_metainfo_key(), is_user_metadata_key(), is_valuechunk_key(), is_valuestats_key(), BrassCompact::PostlistCursor::key, BrassCompact::PostlistCursor::next(), BrassTable::open(), pack_brass_postlist_key(), pack_uint(), pack_uint_last(), Xapian::Compactor::resolve_duplicate_metadata(), BrassCompact::PostlistCursor::tag, BrassCompact::PostlistCursor::tf, unpack_string(), unpack_string_preserving_sort(), unpack_uint(), and unpack_uint_last().
Referenced by compact_brass(), compact_chert(), compact_flint(), and multimerge_postlists().
| static void BrassCompact::merge_spellings | ( | BrassTable * | out, | |
| vector< string >::const_iterator | b, | |||
| vector< string >::const_iterator | e | |||
| ) | [static] |
Definition at line 477 of file brass_compact.cc.
References BrassTable::add(), PrefixCompressedStringWriter::append(), PrefixCompressedStringItor::at_end(), BrassCursor::current_key, BrassCursor::current_tag, DONT_COMPRESS, BrassTable::empty(), BrassCursor::next(), BrassTable::open(), pack_uint_last(), BrassCursor::read_tag(), and unpack_uint_last().
Referenced by compact_brass(), compact_chert(), and compact_flint().
| static void BrassCompact::merge_synonyms | ( | BrassTable * | out, | |
| vector< string >::const_iterator | b, | |||
| vector< string >::const_iterator | e | |||
| ) | [static] |
Definition at line 591 of file brass_compact.cc.
References BrassTable::add(), ByteLengthPrefixedStringItor::at_end(), BrassCursor::current_key, BrassCursor::current_tag, DONT_COMPRESS, BrassTable::empty(), MAGIC_XOR_VALUE, BrassCursor::next(), BrassTable::open(), and BrassCursor::read_tag().
Referenced by compact_brass(), compact_chert(), and compact_flint().
| static void BrassCompact::multimerge_postlists | ( | Xapian::Compactor & | compactor, | |
| BrassTable * | out, | |||
| const char * | tmpdir, | |||
| Xapian::docid | last_docid, | |||
| vector< string > | tmp, | |||
| vector< Xapian::docid > | off | |||
| ) | [static] |
Definition at line 677 of file brass_compact.cc.
References BrassTable::commit(), BrassTable::create_and_open(), BrassTable::flush_db(), merge_postlists(), and unlink().
Referenced by compact_brass(), compact_chert(), and compact_flint().