xapian-core  1.4.27
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ValueUpdater Class Reference
+ Collaboration diagram for ValueUpdater:

Public Member Functions

 ValueUpdater (ChertPostListTable *table_, Xapian::valueno slot_)
 
 ~ValueUpdater ()
 
void update (Xapian::docid did, const string &value)
 

Private Member Functions

void append_to_stream (Xapian::docid did, const string &value)
 
void write_tag ()
 

Private Attributes

ChertPostListTabletable
 
Xapian::valueno slot
 
string ctag
 
ValueChunkReader reader
 
string tag
 
Xapian::docid prev_did
 
Xapian::docid first_did
 
Xapian::docid new_first_did
 
Xapian::docid last_allowed_did
 

Detailed Description

Definition at line 195 of file chert_values.cc.

Constructor & Destructor Documentation

◆ ValueUpdater()

ValueUpdater::ValueUpdater ( ChertPostListTable table_,
Xapian::valueno  slot_ 
)
inline

Definition at line 240 of file chert_values.cc.

◆ ~ValueUpdater()

ValueUpdater::~ValueUpdater ( )
inline

Member Function Documentation

◆ append_to_stream()

void ValueUpdater::append_to_stream ( Xapian::docid  did,
const string &  value 
)
inlineprivate

Definition at line 214 of file chert_values.cc.

References Assert, AssertRel, CHUNK_SIZE_THRESHOLD, pack_string(), and pack_uint().

◆ update()

void ValueUpdater::update ( Xapian::docid  did,
const string &  value 
)
inline

◆ write_tag()

void ValueUpdater::write_tag ( )
inlineprivate

Definition at line 227 of file chert_values.cc.

References ChertTable::add(), ChertTable::del(), and make_valuechunk_key().

Member Data Documentation

◆ ctag

string ValueUpdater::ctag
private

Definition at line 200 of file chert_values.cc.

◆ first_did

Xapian::docid ValueUpdater::first_did
private

Definition at line 208 of file chert_values.cc.

◆ last_allowed_did

Xapian::docid ValueUpdater::last_allowed_did
private

Definition at line 212 of file chert_values.cc.

◆ new_first_did

Xapian::docid ValueUpdater::new_first_did
private

Definition at line 210 of file chert_values.cc.

◆ prev_did

Xapian::docid ValueUpdater::prev_did
private

Definition at line 206 of file chert_values.cc.

◆ reader

ValueChunkReader ValueUpdater::reader
private

Definition at line 202 of file chert_values.cc.

◆ slot

Xapian::valueno ValueUpdater::slot
private

Definition at line 198 of file chert_values.cc.

◆ table

ChertPostListTable* ValueUpdater::table
private

Definition at line 196 of file chert_values.cc.

◆ tag

string ValueUpdater::tag
private

Definition at line 204 of file chert_values.cc.


The documentation for this class was generated from the following file: