|
xapian-core
2.0.0
|
Class for storing the changes in frequencies for a term. More...
Collaboration diagram for Inverter::PostingChanges:Public Member Functions | |
| PostingChanges (Xapian::docid did, Xapian::termcount wdf) | |
| Constructor for an added posting. More... | |
| PostingChanges (Xapian::docid did, Xapian::termcount wdf, bool) | |
| Constructor for a removed posting. More... | |
| PostingChanges (Xapian::docid did, Xapian::termcount old_wdf, Xapian::termcount new_wdf) | |
| Constructor for an updated posting. More... | |
| void | add_posting (Xapian::docid did, Xapian::termcount wdf) |
| Add a posting. More... | |
| void | remove_posting (Xapian::docid did, Xapian::termcount wdf) |
| Remove a posting. More... | |
| void | update_posting (Xapian::docid did, Xapian::termcount old_wdf, Xapian::termcount new_wdf) |
| Update a posting. More... | |
| Xapian::termcount | get_tfdelta () const |
| Get the term frequency delta. More... | |
| Xapian::termcount | get_cfdelta () const |
| Get the collection frequency delta. More... | |
Private Attributes | |
| Xapian::termcount | tf_delta |
| Change in term frequency. More... | |
| Xapian::termcount | cf_delta |
| Change in collection frequency. More... | |
| std::map< Xapian::docid, Xapian::termcount > | pl_changes |
| Changes to this term's postlist. More... | |
Friends | |
| class | GlassPostListTable |
Class for storing the changes in frequencies for a term.
Definition at line 53 of file glass_inverter.h.
|
inline |
Constructor for an added posting.
Definition at line 73 of file glass_inverter.h.
References pl_changes.
|
inline |
Constructor for a removed posting.
Definition at line 80 of file glass_inverter.h.
References DELETED_POSTING, and pl_changes.
|
inline |
Constructor for an updated posting.
Definition at line 88 of file glass_inverter.h.
References pl_changes.
|
inline |
Add a posting.
Definition at line 97 of file glass_inverter.h.
References cf_delta, pl_changes, tf_delta, and UNSIGNED_OVERFLOW_OK.
|
inline |
Get the collection frequency delta.
Definition at line 125 of file glass_inverter.h.
References cf_delta.
Referenced by GlassPostListTable::merge_changes().
|
inline |
Get the term frequency delta.
Definition at line 122 of file glass_inverter.h.
References tf_delta.
Referenced by GlassPostListTable::merge_changes().
|
inline |
Remove a posting.
Definition at line 106 of file glass_inverter.h.
References cf_delta, DELETED_POSTING, pl_changes, tf_delta, and UNSIGNED_OVERFLOW_OK.
|
inline |
Update a posting.
Definition at line 115 of file glass_inverter.h.
References cf_delta, pl_changes, and UNSIGNED_OVERFLOW_OK.
|
friend |
Definition at line 54 of file glass_inverter.h.
|
private |
Change in collection frequency.
Note: Stored as an unsigned quantity to add to current cf.
Definition at line 66 of file glass_inverter.h.
Referenced by add_posting(), get_cfdelta(), remove_posting(), and update_posting().
|
private |
Changes to this term's postlist.
Definition at line 69 of file glass_inverter.h.
Referenced by add_posting(), GlassPostListTable::merge_changes(), PostingChanges(), remove_posting(), and update_posting().
|
private |
Change in term frequency.
Note: Stored as an unsigned quantity to add to current tf.
Definition at line 60 of file glass_inverter.h.
Referenced by add_posting(), get_tfdelta(), and remove_posting().