xapian-core  1.4.26
Classes | Functions | Variables
chert_values.cc File Reference

ChertValueManager class. More...

#include <config.h>
#include "chert_values.h"
#include "chert_cursor.h"
#include "chert_postlist.h"
#include "chert_termlist.h"
#include "debuglog.h"
#include "backends/document.h"
#include "pack.h"
#include "xapian/error.h"
#include "xapian/valueiterator.h"
#include <algorithm>
#include "autoptr.h"
+ Include dependency graph for chert_values.cc:

Go to the source code of this file.

Classes

class  ValueUpdater
 

Functions

static string make_slot_key (Xapian::docid did)
 Generate a key for the "used slots" data. More...
 
static string make_valuestats_key (Xapian::valueno slot)
 Generate a key for a value statistics item. More...
 

Variables

static const size_t CHUNK_SIZE_THRESHOLD = 2000
 

Detailed Description

ChertValueManager class.

Definition in file chert_values.cc.

Function Documentation

◆ make_slot_key()

static string make_slot_key ( Xapian::docid  did)
inlinestatic

Generate a key for the "used slots" data.

Definition at line 48 of file chert_values.cc.

References C_pack_uint_preserving_sort(), LOGCALL_STATIC, and RETURN.

Referenced by ChertValueManager::delete_document(), ChertValueManager::get_all_values(), and ChertValueManager::merge_changes().

◆ make_valuestats_key()

static string make_valuestats_key ( Xapian::valueno  slot)
inlinestatic

Generate a key for a value statistics item.

Definition at line 62 of file chert_values.cc.

References LOGCALL_STATIC, pack_uint_last(), and RETURN.

Referenced by ChertValueManager::get_value_stats(), and ChertValueManager::set_value_stats().

Variable Documentation

◆ CHUNK_SIZE_THRESHOLD

const size_t CHUNK_SIZE_THRESHOLD = 2000
static

Definition at line 193 of file chert_values.cc.

Referenced by ValueUpdater::append_to_stream().