xapian-core  1.4.27
Public Member Functions | Private Attributes | List of all members
ValueChunkReader Class Reference

#include <chert_values.h>

+ Collaboration diagram for ValueChunkReader:

Public Member Functions

 ValueChunkReader ()
 Create a ValueChunkReader which is already at_end(). More...
 
 ValueChunkReader (const char *p_, size_t len, Xapian::docid did_)
 
void assign (const char *p_, size_t len, Xapian::docid did_)
 
bool at_end () const
 
Xapian::docid get_docid () const
 
const std::string & get_value () const
 
void next ()
 
void skip_to (Xapian::docid target)
 

Private Attributes

const char * p
 
const char * end
 
Xapian::docid did
 
std::string value
 

Detailed Description

Definition at line 173 of file chert_values.h.

Constructor & Destructor Documentation

◆ ValueChunkReader() [1/2]

ValueChunkReader::ValueChunkReader ( )
inline

Create a ValueChunkReader which is already at_end().

Definition at line 183 of file chert_values.h.

◆ ValueChunkReader() [2/2]

ValueChunkReader::ValueChunkReader ( const char *  p_,
size_t  len,
Xapian::docid  did_ 
)
inline

Definition at line 185 of file chert_values.h.

Member Function Documentation

◆ assign()

void ValueChunkReader::assign ( const char *  p_,
size_t  len,
Xapian::docid  did_ 
)

Definition at line 71 of file chert_values.cc.

References unpack_string().

Referenced by ValueUpdater::update().

◆ at_end()

bool ValueChunkReader::at_end ( ) const
inline

Definition at line 191 of file chert_values.h.

Referenced by ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

◆ get_docid()

Xapian::docid ValueChunkReader::get_docid ( ) const
inline

Definition at line 193 of file chert_values.h.

Referenced by ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

◆ get_value()

const std::string& ValueChunkReader::get_value ( ) const
inline

Definition at line 195 of file chert_values.h.

Referenced by ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

◆ next()

void ValueChunkReader::next ( )

Definition at line 81 of file chert_values.cc.

References unpack_string(), and unpack_uint().

Referenced by ValueUpdater::update(), and ValueUpdater::~ValueUpdater().

◆ skip_to()

void ValueChunkReader::skip_to ( Xapian::docid  target)

Definition at line 97 of file chert_values.cc.

References rare, and unpack_uint().

Referenced by ChertValueManager::get_value().

Member Data Documentation

◆ did

Xapian::docid ValueChunkReader::did
private

Definition at line 177 of file chert_values.h.

◆ end

const char* ValueChunkReader::end
private

Definition at line 175 of file chert_values.h.

◆ p

const char* ValueChunkReader::p
private

Definition at line 174 of file chert_values.h.

◆ value

std::string ValueChunkReader::value
private

Definition at line 179 of file chert_values.h.


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