24 #ifndef OM_HGUARD_DOCUMENT_H
25 #define OM_HGUARD_DOCUMENT_H
44 friend class ::DocumentValueList;
45 friend class ::ValueStreamDocument;
database class declarations
Iteration over values in a document.
A document which gets its values from a ValueStreamManager.
A document in the database, possibly plus modifications.
Xapian::docid did
The document ID of the document in that database.
virtual string do_get_data() const
string get_data() const
Get data stored in document.
string data
The (user defined) data associated with this document.
Xapian::termcount termlist_count() const
void add_value(Xapian::valueno, const string &)
Internal(Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database_, Xapian::docid did_)
Constructor.
document_terms terms
The terms (and their frequencies and positions) in this document.
void remove_value(Xapian::valueno)
void remove_posting(const string &, Xapian::termpos, Xapian::termcount)
void add_term(const string &, Xapian::termcount)
string get_value(Xapian::valueno slot) const
Get value by value number.
Xapian::docid get_docid() const
Get the docid which is associated with this document (if any).
virtual void do_get_all_values(map< Xapian::valueno, string > &values_) const
bool modified() const
Return true if the document may have been modified.
bool data_modified() const
Return true if the data in the document may have been modified.
void set_data(const string &)
map< Xapian::valueno, string > document_values
Type to store values in.
bool values_modified() const
Return true if the values in the document may have been modified.
void add_posting(const string &, Xapian::termpos, Xapian::termcount)
virtual string do_get_value(Xapian::valueno) const
string get_description() const
Return a string describing this object.
map< string, OmDocumentTerm > document_terms
Type to store terms in.
Xapian::termcount termlist_size
The number of distinct terms in terms.
document_values values
The values associated with this document.
Internal & operator=(const Internal &)
Internal(const Internal &)
void set_all_values(map< Xapian::valueno, string > &values_)
Set all the values.
Xapian::termpos remove_postings(const string &, Xapian::termpos, Xapian::termpos, Xapian::termcount)
bool term_positions_modified() const
Return true if term positions may have been modified.
Xapian::valueno values_count() const
TermList * open_term_list() const
Open a term list.
virtual ~Internal()
Destructor.
Xapian::Internal::intrusive_ptr< const Xapian::Database::Internal > database
The database this document is in.
void remove_term(const string &)
bool terms_modified() const
Return true if the terms in the document may have been modified.
Base class for objects managed by intrusive_ptr.
Abstract base class for termlists.
internal class representing a term in a modified document
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
unsigned valueno
The number for a value slot in a document.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
unsigned XAPIAN_TERMPOS_BASE_TYPE termpos
A term position within a document or query.
Abstract base class for termlists.