42 Database::Internal::~Internal()
47 Database::Internal::keep_alive()
59 Database::Internal::get_doclength_lower_bound()
const 67 Database::Internal::get_doclength_upper_bound()
const 75 Database::Internal::get_wdf_upper_bound(
const string & term)
const 80 get_freqs(term, NULL, &cf);
87 Database::Internal::dtor_called()
90 if (transaction_active()) {
92 }
else if (transaction_state == TRANSACTION_NONE) {
102 Database::Internal::commit()
109 Database::Internal::cancel()
116 Database::Internal::begin_transaction(
bool flushed)
118 if (transaction_state != TRANSACTION_NONE) {
119 if (transaction_state == TRANSACTION_UNIMPLEMENTED)
127 transaction_state = TRANSACTION_FLUSHED;
129 transaction_state = TRANSACTION_UNFLUSHED;
134 Database::Internal::commit_transaction()
136 if (!transaction_active()) {
137 if (transaction_state == TRANSACTION_UNIMPLEMENTED)
141 bool flushed = (transaction_state == TRANSACTION_FLUSHED);
142 transaction_state = TRANSACTION_NONE;
145 if (flushed) commit();
149 Database::Internal::cancel_transaction()
151 if (!transaction_active()) {
152 if (transaction_state == TRANSACTION_UNIMPLEMENTED)
156 transaction_state = TRANSACTION_NONE;
176 Database::Internal::delete_document(
const string & unique_term)
193 Database::Internal::replace_document(
const string & unique_term,
200 return add_document(document);
203 replace_document(did, document);
217 Database::Internal::open_spelling_termlist(
const string &)
const 226 Database::Internal::open_spelling_wordlist()
const 235 Database::Internal::get_spelling_frequency(
const string &)
const 256 Database::Internal::open_synonym_termlist(
const string &)
const 265 Database::Internal::open_synonym_keylist(
const string &)
const 274 Database::Internal::add_synonym(
const string &,
const string &)
const 280 Database::Internal::remove_synonym(
const string &,
const string &)
const 286 Database::Internal::clear_synonyms(
const string &)
const 292 Database::Internal::get_metadata(
const string &)
const 298 Database::Internal::open_metadata_keylist(
const string &)
const 306 Database::Internal::set_metadata(
const string &,
const string &)
312 Database::Internal::reopen()
331 return open_document(did,
true);
335 Database::Internal::write_changesets_to_fd(
int,
const string &,
bool,
ReplicationInfo *)
341 Database::Internal::get_revision_info()
const 347 Database::Internal::get_uuid()
const 366 Database::Internal::locked()
const The Xapian namespace contains public interfaces for the Xapian library.
virtual Xapian::docid get_docid() const =0
Return the current docid.
InvalidOperationError indicates the API was used in an invalid way.
XAPIAN_TOTALLENGTH_TYPE totallength
The total length of all documents in a database.
A document in the database, possibly plus modifications.
Abstract base class for termlists.
Abstract base class for leaf postlists.
Hierarchy of classes which Xapian can throw as exceptions.
unsigned XAPIAN_TERMCOUNT_BASE_TYPE termcount
A counts of terms.
Information about the steps involved in performing a replication.
Slow implementation for backends which don't streamed values.
Abstract base class for value streams.
virtual Internal * next(double w_min)=0
Advance the current position to the next document in the postlist.
unsigned XAPIAN_DOCID_BASE_TYPE doccount
A count of documents.
unsigned valueno
The number for a value slot in a document.
virtual bool at_end() const =0
Return true if the current position is past the last entry in this list.
Various assertion macros.
unsigned XAPIAN_DOCID_BASE_TYPE docid
A unique identifier for a document.
Class representing a query.
A smart pointer that uses intrusive reference counting.
A handle representing a document in a Xapian database.
UnimplementedError indicates an attempt to use an unimplemented feature.
Slow implementation for backends which don't streamed values.