xapian-core
1.4.26
|
A document which gets its values from a ValueStreamManager. More...
#include <valuestreamdocument.h>
Public Member Functions | |
ValueStreamDocument (const Xapian::Database &db_) | |
void | new_subdb (int n) |
~ValueStreamDocument () | |
void | set_document (Xapian::docid did_) |
std::string | get_value (Xapian::valueno slot) const |
Public Member Functions inherited from Xapian::Document::Internal | |
string | get_value (Xapian::valueno slot) const |
Get value by value number. More... | |
void | set_all_values (map< Xapian::valueno, string > &values_) |
Set all the values. More... | |
Xapian::valueno | values_count () const |
void | add_value (Xapian::valueno, const string &) |
void | remove_value (Xapian::valueno) |
void | clear_values () |
void | add_posting (const string &, Xapian::termpos, Xapian::termcount) |
void | add_term (const string &, Xapian::termcount) |
void | remove_posting (const string &, Xapian::termpos, Xapian::termcount) |
Xapian::termpos | remove_postings (const string &, Xapian::termpos, Xapian::termpos, Xapian::termcount) |
void | remove_term (const string &) |
void | clear_terms () |
Xapian::termcount | termlist_count () const |
string | get_data () const |
Get data stored in document. More... | |
void | set_data (const string &) |
TermList * | open_term_list () const |
Open a term list. More... | |
void | need_values () const |
void | need_terms () const |
bool | data_modified () const |
Return true if the data in the document may have been modified. More... | |
bool | values_modified () const |
Return true if the values in the document may have been modified. More... | |
bool | terms_modified () const |
Return true if the terms in the document may have been modified. More... | |
bool | term_positions_modified () const |
Return true if term positions may have been modified. More... | |
bool | modified () const |
Return true if the document may have been modified. More... | |
Xapian::docid | get_docid () const |
Get the docid which is associated with this document (if any). More... | |
string | get_description () const |
Return a string describing this object. More... | |
Internal (Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database_, Xapian::docid did_) | |
Constructor. More... | |
Internal () | |
virtual | ~Internal () |
Destructor. More... | |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
intrusive_base () | |
Construct with no references. More... | |
Private Member Functions | |
void | operator= (const ValueStreamDocument &) |
Don't allow assignment. More... | |
ValueStreamDocument (const ValueStreamDocument &) | |
Don't allow copying. More... | |
std::string | do_get_value (Xapian::valueno slot) const |
Implementation of virtual methods. More... | |
void | do_get_all_values (std::map< Xapian::valueno, std::string > &values_) const |
Implementation of virtual methods. More... | |
std::string | do_get_data () const |
Implementation of virtual methods. More... | |
Private Attributes | |
std::map< Xapian::valueno, ValueList * > | valuelists |
Xapian::Database | db |
size_t | current |
Xapian::Document::Internal * | doc |
Additional Inherited Members | |
Public Types inherited from Xapian::Document::Internal | |
typedef map< Xapian::valueno, string > | document_values |
Type to store values in. More... | |
typedef map< string, OmDocumentTerm > | document_terms |
Type to store terms in. More... | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Attributes inherited from Xapian::Document::Internal | |
Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > | database |
The database this document is in. More... | |
Xapian::docid | did |
The document ID of the document in that database. More... | |
A document which gets its values from a ValueStreamManager.
Definition at line 33 of file valuestreamdocument.h.
|
private |
Don't allow copying.
|
inlineexplicit |
Definition at line 49 of file valuestreamdocument.h.
References new_subdb(), and ~ValueStreamDocument().
ValueStreamDocument::~ValueStreamDocument | ( | ) |
Definition at line 38 of file valuestreamdocument.cc.
References clear_valuelists().
Referenced by ValueStreamDocument().
|
privatevirtual |
Implementation of virtual methods.
Reimplemented from Xapian::Document::Internal.
Definition at line 94 of file valuestreamdocument.cc.
Referenced by get_value().
|
privatevirtual |
Implementation of virtual methods.
Reimplemented from Xapian::Document::Internal.
Definition at line 103 of file valuestreamdocument.cc.
Referenced by get_value().
|
privatevirtual |
Implementation of virtual methods.
Reimplemented from Xapian::Document::Internal.
Definition at line 55 of file valuestreamdocument.cc.
References Assert, AssertEq, AssertEqParanoid, Xapian::ValueIterator::Internal::at_end(), Xapian::ValueIterator::Internal::check(), Xapian::ValueIterator::Internal::get_docid(), and Xapian::ValueIterator::Internal::get_value().
Referenced by get_value().
|
inline |
Definition at line 66 of file valuestreamdocument.h.
References do_get_all_values(), do_get_data(), and do_get_value().
void ValueStreamDocument::new_subdb | ( | int | n | ) |
Definition at line 45 of file valuestreamdocument.cc.
References AssertRel, and clear_valuelists().
Referenced by MergePostList::next(), and ValueStreamDocument().
|
private |
Don't allow assignment.
|
inline |
Definition at line 56 of file valuestreamdocument.h.
References AssertEq, Xapian::Document::Internal::did, doc, and Xapian::Database::internal.
|
private |
Definition at line 44 of file valuestreamdocument.h.
|
private |
Definition at line 42 of file valuestreamdocument.h.
|
mutableprivate |
Definition at line 46 of file valuestreamdocument.h.
Referenced by set_document().
|
mutableprivate |
Definition at line 40 of file valuestreamdocument.h.