xapian-core  1.4.27
Classes | Namespaces | Functions | Variables
glass_values.cc File Reference

GlassValueManager class. More...

#include <config.h>
#include "glass_values.h"
#include "glass_cursor.h"
#include "glass_postlist.h"
#include "glass_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 glass_values.cc:

Go to the source code of this file.

Classes

class  Glass::ValueUpdater
 

Namespaces

 Glass
 

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

GlassValueManager class.

Definition in file glass_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 49 of file glass_values.cc.

References LOGCALL_STATIC, pack_uint_preserving_sort(), and RETURN.

Referenced by GlassValueManager::delete_document(), GlassValueManager::get_all_values(), and GlassValueManager::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 63 of file glass_values.cc.

References LOGCALL_STATIC, pack_uint_last(), and RETURN.

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

Variable Documentation

◆ CHUNK_SIZE_THRESHOLD

const size_t CHUNK_SIZE_THRESHOLD = 2000
static

Definition at line 192 of file glass_values.cc.

Referenced by Glass::ValueUpdater::append_to_stream().