#include <document.h>
Public Member Functions | |
Document (char *id) | |
Document (std::string &id) | |
Document (const Document &doc) | |
Document & | operator= (const Document &rhs) |
~Document (void) | |
void | add (const Field *field) |
bool | has_next (void) |
bool | has_next (void) const |
const Field * | get_next (void) |
const Field * | get_next (void) const |
void | init_iter (void) |
void | init_iter (void) const |
const std::string | get_eid (void) |
const std::string | get_eid (void) const |
void | set_id (doc_id_t internal_id) |
const doc_id_t | get_id (void) |
const doc_id_t | get_id (void) const |
const std::string | get_by_name (std::string field_name) |
Lux::Document::Document | ( | char * | id | ) |
constructor
id | external ID in char * |
Lux::Document::Document | ( | std::string & | id | ) |
constructor
id | external ID in std::string |
Lux::Document::Document | ( | const Document & | doc | ) |
copy constructor
Lux::Document::~Document | ( | void | ) |
destructor
const std::string Lux::Document::get_by_name | ( | std::string | field_name | ) |
get the field value of the specified field name
const std::string Lux::Document::get_eid | ( | void | ) | const |
get the external ID
const std::string Lux::Document::get_eid | ( | void | ) |
get the external ID
const doc_id_t Lux::Document::get_id | ( | void | ) | const |
get the internal ID
const doc_id_t Lux::Document::get_id | ( | void | ) |
get the internal ID
bool Lux::Document::has_next | ( | void | ) | const |
check if it has a next field
bool Lux::Document::has_next | ( | void | ) |
check if it has a next field
void Lux::Document::init_iter | ( | void | ) | const |
initialize an iterator
void Lux::Document::init_iter | ( | void | ) |
initialize an iterator
void Lux::Document::set_id | ( | doc_id_t | internal_id | ) |
set a internal ID