|
xapian-core
2.0.0
|
A database held entirely in memory. More...
#include <inmemory_database.h>
Inheritance diagram for InMemoryDatabase:
Collaboration diagram for InMemoryDatabase:Public Member Functions | |
| InMemoryDatabase () | |
| Create and open an in-memory database. More... | |
| ~InMemoryDatabase () | |
| bool | reopen () |
| Reopen the database to the latest available revision. More... | |
| void | close () |
| Close the database. More... | |
| bool | is_closed () const |
| Xapian::doccount | get_doccount () const |
| Xapian::docid | get_lastdocid () const |
| Return the last used document id of this (sub) database. More... | |
| Xapian::totallength | get_total_length () const |
| Return the total length of all documents in this database. More... | |
| Xapian::termcount | get_doclength (Xapian::docid did) const |
| Xapian::termcount | get_unique_terms (Xapian::docid did) const |
| Get the number of unique terms in document. More... | |
| Xapian::termcount | get_wdfdocmax (Xapian::docid did) const |
| Get the max wdf in document. More... | |
| void | get_freqs (std::string_view term, Xapian::doccount *termfreq_ptr, Xapian::termcount *collfreq_ptr) const |
| Returns frequencies for a term. More... | |
| Xapian::doccount | get_value_freq (Xapian::valueno slot) const |
| Return the frequency of a given value slot. More... | |
| std::string | get_value_lower_bound (Xapian::valueno slot) const |
| Get a lower bound on the values stored in the given value slot. More... | |
| std::string | get_value_upper_bound (Xapian::valueno slot) const |
| Get an upper bound on the values stored in the given value slot. More... | |
| Xapian::termcount | get_doclength_lower_bound () const |
| Get a lower bound on the length of a document in this DB. More... | |
| Xapian::termcount | get_doclength_upper_bound () const |
| Get an upper bound on the length of a document in this DB. More... | |
| Xapian::termcount | get_wdf_upper_bound (std::string_view term) const |
| Get an upper bound on the wdf of term term. More... | |
| bool | term_exists (std::string_view term) const |
| bool | has_positions () const |
| Check whether this database contains any positional information. More... | |
| PostList * | open_post_list (std::string_view tname) const |
| Return a PostList suitable for use in a PostingIterator. More... | |
| LeafPostList * | open_leaf_post_list (std::string_view term, bool need_read_pos) const |
| Create a LeafPostList for use during a match. More... | |
| TermList * | open_term_list (Xapian::docid did) const |
| TermList * | open_term_list_direct (Xapian::docid did) const |
| Like open_term_list() but without MultiTermList wrapper. More... | |
| Xapian::Document::Internal * | open_document (Xapian::docid did, bool lazy) const |
| Open a handle on a document. More... | |
| std::string | get_metadata (std::string_view key) const |
| Get the metadata associated with a given key. More... | |
| TermList * | open_metadata_keylist (std::string_view prefix) const |
| Open a termlist returning each metadata key. More... | |
| void | set_metadata (std::string_view key, std::string_view value) |
| Set the metadata associated with a given key. More... | |
| Xapian::termcount | positionlist_count (Xapian::docid did, std::string_view tname) const |
| PositionList * | open_position_list (Xapian::docid did, std::string_view tname) const |
| TermList * | open_allterms (std::string_view prefix) const |
| int | get_backend_info (std::string *path) const |
| Get backend information about this database. More... | |
| void | get_used_docid_range (Xapian::docid &first, Xapian::docid &last) const |
| Find lowest and highest docids actually in use. More... | |
| bool | locked () const |
| Return true if the database is open for writing. More... | |
| Xapian::Database::Internal * | update_lock (int flags) |
| Lock a read-only database for writing or unlock a writable database. More... | |
| std::string | get_description () const |
| Return a string describing this object. More... | |
Public Member Functions inherited from Xapian::Database::Internal | |
| virtual | ~Internal () |
| We have virtual methods and want to be able to delete derived classes using a pointer to the base class, so we need a virtual destructor. More... | |
| virtual size_type | size () const |
| virtual void | keep_alive () |
| virtual void | readahead_for_query (const Query &query) const |
| virtual termcount | get_unique_terms_lower_bound () const |
| Get a lower bound on the unique terms size of a document in this DB. More... | |
| virtual termcount | get_unique_terms_upper_bound () const |
| Get an upper bound on the unique terms size of a document in this DB. More... | |
| virtual ValueList * | open_value_list (valueno slot) const |
| Open a value stream. More... | |
| virtual TermList * | open_spelling_termlist (std::string_view word) const |
| Create a termlist tree from trigrams of word. More... | |
| virtual TermList * | open_spelling_wordlist () const |
| Return a termlist which returns the words which are spelling correction targets. More... | |
| virtual doccount | get_spelling_frequency (std::string_view word) const |
| Return the number of times word was added as a spelling. More... | |
| virtual void | add_spelling (std::string_view word, termcount freqinc) const |
| Add a word to the spelling dictionary. More... | |
| virtual termcount | remove_spelling (std::string_view word, termcount freqdec) const |
| Remove a word from the spelling dictionary. More... | |
| virtual TermList * | open_synonym_termlist (std::string_view term) const |
| Open a termlist returning synonyms for a term. More... | |
| virtual TermList * | open_synonym_keylist (std::string_view prefix) const |
| Open a termlist returning each term which has synonyms. More... | |
| virtual void | add_synonym (std::string_view term, std::string_view synonym) const |
| Add a synonym for a term. More... | |
| virtual void | remove_synonym (std::string_view term, std::string_view synonym) const |
| Remove a synonym for a term. More... | |
| virtual void | clear_synonyms (std::string_view term) const |
| Clear all synonyms for a term. More... | |
| virtual void | begin_transaction (bool flushed) |
| Begin transaction. More... | |
| virtual void | end_transaction (bool do_commit) |
| End transaction. More... | |
| virtual void | delete_document (std::string_view unique_term) |
| Delete any documents indexed by a term from the database. More... | |
| virtual docid | replace_document (std::string_view unique_term, const Document &document) |
| Replace any documents matching a term. More... | |
| virtual void | request_document (docid did) const |
| Request a document. More... | |
| virtual void | write_changesets_to_fd (int fd, std::string_view start_revision, bool need_whole_db, ReplicationInfo *info) |
| Write a set of changesets to a file descriptor. More... | |
| virtual Xapian::rev | get_revision () const |
| Get revision number of database (if meaningful). More... | |
| virtual std::string | get_uuid () const |
| Get a UUID for the database. More... | |
| virtual void | invalidate_doc_object (Document::Internal *obj) const |
| Notify the database that document is no longer valid. More... | |
| virtual std::string | reconstruct_text (Xapian::docid did, size_t length, std::string_view prefix, Xapian::termpos start_pos, Xapian::termpos end_pos) const |
Public Member Functions inherited from Xapian::Internal::intrusive_base | |
| intrusive_base () | |
| Construct with no references. More... | |
Static Public Member Functions | |
| static void | throw_database_closed () |
Private Member Functions | |
| InMemoryDatabase & | operator= (const InMemoryDatabase &) |
| InMemoryDatabase (const InMemoryDatabase &) | |
| void | make_term (const std::string &tname) |
| bool | doc_exists (Xapian::docid did) const |
| Xapian::docid | make_doc (const std::string &docdata) |
| void | finish_add_doc (Xapian::docid did, const Xapian::Document &document) |
| void | add_values (Xapian::docid did, const std::map< Xapian::valueno, std::string > &values_) |
| void | make_posting (InMemoryDoc *doc, const std::string &tname, Xapian::docid did, Xapian::termpos position, Xapian::termcount wdf, bool use_position=true) |
| void | commit () |
| Implementation of virtual methods: see Database for details. More... | |
| void | cancel () |
| Cancel pending modifications to the database. More... | |
| Xapian::docid | add_document (const Xapian::Document &document) |
| void | delete_document (Xapian::docid did) |
| void | replace_document (Xapian::docid did, const Xapian::Document &document) |
Private Attributes | |
| std::map< std::string, InMemoryTerm, std::less<> > | postlists |
| std::vector< InMemoryDoc > | termlists |
| std::vector< std::string > | doclists |
| std::vector< std::map< Xapian::valueno, std::string > > | valuelists |
| std::map< Xapian::valueno, ValueStats > | valuestats |
| std::vector< Xapian::termcount > | doclengths |
| std::map< std::string, std::string, std::less<> > | metadata |
| Xapian::doccount | totdocs |
| Xapian::totallength | totlen |
| bool | positions_present |
| bool | closed |
Friends | |
| class | InMemoryAllDocsPostList |
| class | InMemoryDocument |
Additional Inherited Members | |
Public Types inherited from Xapian::Database::Internal | |
| typedef Xapian::doccount | size_type |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
| unsigned | _refs |
| Reference count. More... | |
Protected Types inherited from Xapian::Database::Internal | |
| enum | transaction_state { TRANSACTION_READONLY = -2 , TRANSACTION_UNIMPLEMENTED = -1 , TRANSACTION_NONE = 0 , TRANSACTION_UNFLUSHED = 1 , TRANSACTION_FLUSHED = 2 } |
| Transaction state enum. More... | |
Protected Member Functions inherited from Xapian::Database::Internal | |
| Internal (transaction_state transaction_support) | |
| Only constructable as a base class for derived classes. More... | |
| bool | is_read_only () const |
| Test if this shard is read-only. More... | |
| bool | transaction_active () const |
| Test if a transaction is currently active. More... | |
| void | dtor_called () |
| Helper to process uncommitted changes when a writable db is destroyed. More... | |
Protected Attributes inherited from Xapian::Database::Internal | |
| transaction_state | state |
| Current transaction state. More... | |
A database held entirely in memory.
This is a prototype database, mainly used for debugging and testing.
Definition at line 250 of file inmemory_database.h.
|
private |
| InMemoryDatabase::InMemoryDatabase | ( | ) |
Create and open an in-memory database.
| Xapian::DatabaseOpeningError | thrown if database can't be opened. |
Definition at line 427 of file inmemory_database.cc.
References postlists.
| InMemoryDatabase::~InMemoryDatabase | ( | ) |
Definition at line 436 of file inmemory_database.cc.
References Xapian::Database::Internal::dtor_called().
|
privatevirtual |
Reimplemented from Xapian::Database::Internal.
Definition at line 887 of file inmemory_database.cc.
References closed, finish_add_doc(), Xapian::Document::get_data(), LOGCALL, make_doc(), RETURN, and throw_database_closed().
|
private |
Definition at line 744 of file inmemory_database.cc.
References closed, throw_database_closed(), valuelists, and valuestats.
Referenced by finish_add_doc().
|
privatevirtual |
Cancel pending modifications to the database.
Reimplemented from Xapian::Database::Internal.
Definition at line 783 of file inmemory_database.cc.
|
virtual |
Close the database.
Implements Xapian::Database::Internal.
Definition at line 449 of file inmemory_database.cc.
References closed, doclengths, doclists, metadata, postlists, termlists, valuelists, and valuestats.
|
privatevirtual |
Implementation of virtual methods: see Database for details.
Reimplemented from Xapian::Database::Internal.
Definition at line 777 of file inmemory_database.cc.
|
privatevirtual |
Reimplemented from Xapian::Database::Internal.
Definition at line 788 of file inmemory_database.cc.
References Assert, closed, InMemoryPosting::did, doc_exists(), doclengths, doclists, p, positions_present, postlists, Xapian::Internal::str(), termlists, throw_database_closed(), totdocs, totlen, valuelists, and valuestats.
|
private |
Definition at line 494 of file inmemory_database.cc.
References closed, termlists, and throw_database_closed().
Referenced by delete_document(), get_doclength(), make_posting(), open_document(), open_position_list(), open_term_list(), positionlist_count(), and replace_document().
|
private |
Definition at line 900 of file inmemory_database.cc.
References add_values(), Assert, doclengths, Xapian::ValueIterator::get_valueno(), Xapian::TermIterator::get_wdf(), LOGLINE, make_posting(), make_term(), Xapian::TermIterator::positionlist_begin(), Xapian::TermIterator::positionlist_end(), positions_present, postlists, Xapian::Document::termlist_begin(), Xapian::Document::termlist_end(), termlists, totdocs, totlen, Xapian::Document::values_begin(), and Xapian::Document::values_end().
Referenced by add_document(), and replace_document().
|
inlinevirtual |
Get backend information about this database.
| path | If non-NULL, and set the pointed to string to the file path of this database (or to some string describing the database in a backend-specified format if "path" isn't a concept which makes sense). |
Implements Xapian::Database::Internal.
Definition at line 367 of file inmemory_database.h.
References BACKEND_INMEMORY.
|
virtual |
Return a string describing this object.
Implements Xapian::Database::Internal.
Definition at line 1037 of file inmemory_database.cc.
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 574 of file inmemory_database.cc.
References closed, throw_database_closed(), and totdocs.
Referenced by InMemoryTermList::accumulate_stats().
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 594 of file inmemory_database.cc.
References closed, doc_exists(), doclengths, Xapian::Internal::str(), and throw_database_closed().
|
virtual |
Get a lower bound on the length of a document in this DB.
This bound does not include any zero-length documents.
Implements Xapian::Database::Internal.
Definition at line 548 of file inmemory_database.cc.
|
virtual |
Get an upper bound on the length of a document in this DB.
Implements Xapian::Database::Internal.
Definition at line 556 of file inmemory_database.cc.
References get_total_length().
|
virtual |
Returns frequencies for a term.
| term | The term to get frequencies for |
| termfreq_ptr | Point to return number of docs indexed by term (or NULL not to return) |
| collfreq_ptr | Point to return number of occurrences of term in the database (or NULL not to return) |
Implements Xapian::Database::Internal.
Definition at line 501 of file inmemory_database.cc.
References closed, postlists, term, and throw_database_closed().
Referenced by InMemoryTermList::get_termfreq(), and get_wdf_upper_bound().
|
virtual |
Return the last used document id of this (sub) database.
Implements Xapian::Database::Internal.
Definition at line 581 of file inmemory_database.cc.
References closed, termlists, and throw_database_closed().
|
virtual |
Get the metadata associated with a given key.
See Database::get_metadata() for more information.
Reimplemented from Xapian::Database::Internal.
Definition at line 666 of file inmemory_database.cc.
References closed, metadata, and throw_database_closed().
|
virtual |
Return the total length of all documents in this database.
Implements Xapian::Database::Internal.
Definition at line 588 of file inmemory_database.cc.
References totlen.
Referenced by get_doclength_upper_bound().
|
virtual |
Get the number of unique terms in document.
| did | The document id of the document to return this value for. |
Implements Xapian::Database::Internal.
Definition at line 605 of file inmemory_database.cc.
References closed, doclengths, Xapian::Internal::str(), termlists, and throw_database_closed().
|
virtual |
Find lowest and highest docids actually in use.
Used during local matching and compaction, so only needs to be implemented by backends which support one or both of these.
For example, EmptyDatabase, MultiDatabase and RemoteDatabase don't need to implement this (empty shards are skipped early by the matcher; sharded databases are handled explicitly by the matcher rather than via the "multi" backend; matching for remote shards runs as a local match on the remote).
Reimplemented from Xapian::Database::Internal.
Definition at line 1009 of file inmemory_database.cc.
References closed, termlists, throw_database_closed(), and totdocs.
|
virtual |
Return the frequency of a given value slot.
This is the number of documents which have a (non-empty) value stored in the slot.
| slot | The value slot to examine. |
Implements Xapian::Database::Internal.
Definition at line 521 of file inmemory_database.cc.
References closed, throw_database_closed(), and valuestats.
|
virtual |
Get a lower bound on the values stored in the given value slot.
If there are no values stored in the given value slot, this will return an empty string.
| slot | The value slot to examine. |
Implements Xapian::Database::Internal.
Definition at line 530 of file inmemory_database.cc.
References closed, throw_database_closed(), and valuestats.
|
virtual |
Get an upper bound on the values stored in the given value slot.
If there are no values stored in the given value slot, this will return an empty string.
| slot | The value slot to examine. |
Implements Xapian::Database::Internal.
Definition at line 539 of file inmemory_database.cc.
References closed, throw_database_closed(), and valuestats.
|
virtual |
Get an upper bound on the wdf of term term.
Implements Xapian::Database::Internal.
Definition at line 564 of file inmemory_database.cc.
References get_freqs(), and term.
|
virtual |
Get the max wdf in document.
| did | The document id of the document to return this value for. |
Implements Xapian::Database::Internal.
Definition at line 619 of file inmemory_database.cc.
References closed, Xapian::Internal::str(), termlists, and throw_database_closed().
Referenced by InMemoryPostList::get_wdfdocmax().
|
virtual |
Check whether this database contains any positional information.
Implements Xapian::Database::Internal.
Definition at line 993 of file inmemory_database.cc.
References closed, positions_present, and throw_database_closed().
|
inline |
Definition at line 323 of file inmemory_database.h.
References closed.
Referenced by InMemoryTermList::accumulate_stats(), InMemoryPostList::at_end(), InMemoryAllDocsPostList::at_end(), InMemoryTermList::get_approx_size(), InMemoryPostList::get_docid(), InMemoryAllDocsPostList::get_docid(), InMemoryTermList::get_termfreq(), InMemoryPostList::get_wdf(), InMemoryTermList::get_wdf(), InMemoryPostList::get_wdf_upper_bound(), InMemoryTermList::next(), InMemoryPostList::next(), InMemoryAllDocsPostList::next(), InMemoryPostList::open_position_list(), InMemoryTermList::positionlist_begin(), InMemoryTermList::positionlist_count(), InMemoryPostList::read_position_list(), InMemoryTermList::skip_to(), InMemoryPostList::skip_to(), and InMemoryAllDocsPostList::skip_to().
|
inlinevirtual |
Return true if the database is open for writing.
If this is a WritableDatabase, always returns true.
For a Database, test if there's a writer holding the lock (or if we can't test for a lock without taking it on the current platform, throw Xapian::UnimplementedError).
Reimplemented from Xapian::Database::Internal.
Definition at line 374 of file inmemory_database.h.
References closed.
|
private |
Definition at line 948 of file inmemory_database.cc.
References AssertEqParanoid, doclengths, doclists, rare, and termlists.
Referenced by add_document().
|
private |
Definition at line 963 of file inmemory_database.cc.
References InMemoryDoc::add_posting(), Assert, doc_exists(), doclengths, postlists, and termlists.
Referenced by finish_add_doc().
|
private |
Definition at line 942 of file inmemory_database.cc.
References postlists.
Referenced by finish_add_doc().
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 1000 of file inmemory_database.cc.
References closed, postlists, and throw_database_closed().
|
virtual |
Open a handle on a document.
The returned handle provides access to document data and document values.
| did | The document id to open. |
| lazy | If true, there's no need to check that this document actually exists (only a hint - the backend may still check). Used to avoid unnecessary work when we already know that the requested document exists. |
Implements Xapian::Database::Internal.
Definition at line 653 of file inmemory_database.cc.
References Assert, closed, doc_exists(), InMemoryDocument, Xapian::Internal::str(), and throw_database_closed().
|
virtual |
Create a LeafPostList for use during a match.
| term | The term to open a postlist for, or the empty string to create an all-docs postlist. |
| need_read_pos | Does the postlist need to support read_position_list()? Note that open_position_list() may still be called even if need_read_pos is false. |
Implements Xapian::Database::Internal.
Definition at line 469 of file inmemory_database.cc.
References Assert, closed, InMemoryAllDocsPostList, postlists, rare, term, termlists, throw_database_closed(), and totdocs.
Referenced by open_post_list().
|
virtual |
Open a termlist returning each metadata key.
Only metadata keys which are associated with a non-empty value will be returned.
| prefix | If non-empty, only keys with this prefix are returned. |
Reimplemented from Xapian::Database::Internal.
Definition at line 676 of file inmemory_database.cc.
References closed, metadata, and throw_database_closed().
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 725 of file inmemory_database.cc.
References closed, doc_exists(), termlists, InMemoryDoc::terms, throw_database_closed(), InMemoryTermEntry::tname, and usual.
Referenced by InMemoryTermList::positionlist_begin().
|
virtual |
Return a PostList suitable for use in a PostingIterator.
Implements Xapian::Database::Internal.
Definition at line 463 of file inmemory_database.cc.
References open_leaf_post_list(), and term.
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 633 of file inmemory_database.cc.
References Assert, closed, doc_exists(), doclengths, Xapian::Internal::str(), termlists, and throw_database_closed().
Referenced by open_term_list_direct().
|
virtual |
Like open_term_list() but without MultiTermList wrapper.
MultiDatabase::open_term_list() wraps the returns TermList in a MultiTermList, but we don't want that for query expansion.
Implements Xapian::Database::Internal.
Definition at line 647 of file inmemory_database.cc.
References open_term_list().
|
private |
| Xapian::termcount InMemoryDatabase::positionlist_count | ( | Xapian::docid | did, |
| std::string_view | tname | ||
| ) | const |
Definition at line 705 of file inmemory_database.cc.
References closed, doc_exists(), termlists, InMemoryDoc::terms, throw_database_closed(), and InMemoryTermEntry::tname.
Referenced by InMemoryTermList::positionlist_count().
|
virtual |
Reopen the database to the latest available revision.
Database backends which don't support simultaneous update and reading probably don't need to do anything here.
Reimplemented from Xapian::Database::Internal.
Definition at line 442 of file inmemory_database.cc.
References closed, and throw_database_closed().
|
privatevirtual |
Reimplemented from Xapian::Database::Internal.
Definition at line 834 of file inmemory_database.cc.
References Assert, closed, InMemoryPosting::did, doc_exists(), doclengths, doclists, finish_add_doc(), Xapian::Document::get_data(), LOGCALL_VOID, p, postlists, termlists, throw_database_closed(), totdocs, totlen, valuelists, and valuestats.
|
virtual |
Set the metadata associated with a given key.
See WritableDatabase::set_metadata() for more information.
Reimplemented from Xapian::Database::Internal.
Definition at line 685 of file inmemory_database.cc.
References closed, metadata, and throw_database_closed().
|
virtual |
Implements Xapian::Database::Internal.
Definition at line 981 of file inmemory_database.cc.
References closed, postlists, term, throw_database_closed(), and totdocs.
|
static |
Definition at line 1031 of file inmemory_database.cc.
Referenced by InMemoryTermList::accumulate_stats(), add_document(), add_values(), InMemoryPostList::at_end(), InMemoryAllDocsPostList::at_end(), delete_document(), doc_exists(), InMemoryDocument::fetch_all_values(), InMemoryDocument::fetch_data(), InMemoryTermList::get_approx_size(), get_doccount(), InMemoryPostList::get_docid(), InMemoryAllDocsPostList::get_docid(), get_doclength(), get_freqs(), get_lastdocid(), get_metadata(), InMemoryAllTermsList::get_termfreq(), InMemoryTermList::get_termfreq(), get_unique_terms(), get_used_docid_range(), get_value_freq(), get_value_lower_bound(), get_value_upper_bound(), InMemoryPostList::get_wdf(), InMemoryTermList::get_wdf(), InMemoryPostList::get_wdf_upper_bound(), get_wdfdocmax(), has_positions(), InMemoryAllTermsList::next(), InMemoryTermList::next(), InMemoryPostList::next(), InMemoryAllDocsPostList::next(), open_allterms(), open_document(), open_leaf_post_list(), open_metadata_keylist(), InMemoryPostList::open_position_list(), open_position_list(), open_term_list(), InMemoryTermList::positionlist_begin(), InMemoryTermList::positionlist_count(), positionlist_count(), InMemoryPostList::read_position_list(), reopen(), replace_document(), set_metadata(), InMemoryTermList::skip_to(), InMemoryAllTermsList::skip_to(), InMemoryPostList::skip_to(), InMemoryAllDocsPostList::skip_to(), and term_exists().
|
virtual |
Lock a read-only database for writing or unlock a writable database.
This is the internal method behind Database::lock() and Database::unlock().
In the unlocking case, the writable database is closed. In the locking case, the read-only database is left open.
| flags | Xapian::DB_READONLY_ to unlock, otherwise the flags to use when opening from writing. |
Reimplemented from Xapian::Database::Internal.
Definition at line 1024 of file inmemory_database.cc.
|
friend |
Definition at line 251 of file inmemory_database.h.
Referenced by open_leaf_post_list().
|
friend |
Definition at line 252 of file inmemory_database.h.
Referenced by open_document().
|
private |
Definition at line 271 of file inmemory_database.h.
Referenced by add_document(), add_values(), close(), delete_document(), doc_exists(), InMemoryDocument::fetch_all_values(), InMemoryDocument::fetch_data(), get_doccount(), get_doclength(), get_freqs(), get_lastdocid(), get_metadata(), get_unique_terms(), get_used_docid_range(), get_value_freq(), get_value_lower_bound(), get_value_upper_bound(), get_wdfdocmax(), has_positions(), is_closed(), locked(), open_allterms(), open_document(), open_leaf_post_list(), open_metadata_keylist(), open_position_list(), open_term_list(), positionlist_count(), reopen(), replace_document(), set_metadata(), and term_exists().
|
private |
Definition at line 260 of file inmemory_database.h.
Referenced by close(), delete_document(), finish_add_doc(), get_doclength(), get_unique_terms(), make_doc(), make_posting(), open_term_list(), and replace_document().
|
private |
Definition at line 256 of file inmemory_database.h.
Referenced by close(), delete_document(), InMemoryDocument::fetch_data(), make_doc(), and replace_document().
|
private |
Definition at line 262 of file inmemory_database.h.
Referenced by close(), get_metadata(), open_metadata_keylist(), and set_metadata().
|
private |
Definition at line 268 of file inmemory_database.h.
Referenced by delete_document(), finish_add_doc(), and has_positions().
|
private |
Definition at line 254 of file inmemory_database.h.
Referenced by close(), delete_document(), finish_add_doc(), get_freqs(), InMemoryDatabase(), make_posting(), make_term(), open_allterms(), open_leaf_post_list(), replace_document(), and term_exists().
|
private |
Definition at line 255 of file inmemory_database.h.
Referenced by InMemoryAllDocsPostList::at_end(), close(), delete_document(), doc_exists(), finish_add_doc(), InMemoryAllDocsPostList::get_docid(), get_lastdocid(), get_unique_terms(), get_used_docid_range(), get_wdfdocmax(), make_doc(), make_posting(), InMemoryAllDocsPostList::next(), open_leaf_post_list(), open_position_list(), open_term_list(), positionlist_count(), replace_document(), and InMemoryAllDocsPostList::skip_to().
|
private |
Definition at line 264 of file inmemory_database.h.
Referenced by delete_document(), finish_add_doc(), get_doccount(), get_used_docid_range(), open_leaf_post_list(), replace_document(), and term_exists().
|
private |
Definition at line 266 of file inmemory_database.h.
Referenced by delete_document(), finish_add_doc(), get_total_length(), and replace_document().
|
private |
Definition at line 257 of file inmemory_database.h.
Referenced by add_values(), close(), delete_document(), InMemoryDocument::fetch_all_values(), InMemoryDocument::fetch_data(), InMemoryDocument::fetch_value(), and replace_document().
|
private |
Definition at line 258 of file inmemory_database.h.
Referenced by add_values(), close(), delete_document(), get_value_freq(), get_value_lower_bound(), get_value_upper_bound(), and replace_document().