xapian-core  1.4.26
Public Member Functions | Private Attributes | Friends | List of all members
Inverter::PostingChanges Class Reference

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_diff get_tfdelta () const
 Get the term frequency delta. More...
 
Xapian::termcount_diff get_cfdelta () const
 Get the collection frequency delta. More...
 

Private Attributes

Xapian::termcount_diff tf_delta
 Change in term frequency,. More...
 
Xapian::termcount_diff cf_delta
 Change in collection frequency. More...
 
std::map< Xapian::docid, Xapian::termcountpl_changes
 Changes to this term's postlist. More...
 

Friends

class GlassPostListTable
 

Detailed Description

Class for storing the changes in frequencies for a term.

Definition at line 49 of file glass_inverter.h.

Constructor & Destructor Documentation

◆ PostingChanges() [1/3]

Inverter::PostingChanges::PostingChanges ( Xapian::docid  did,
Xapian::termcount  wdf 
)
inline

Constructor for an added posting.

Definition at line 63 of file glass_inverter.h.

◆ PostingChanges() [2/3]

Inverter::PostingChanges::PostingChanges ( Xapian::docid  did,
Xapian::termcount  wdf,
bool   
)
inline

Constructor for a removed posting.

Definition at line 70 of file glass_inverter.h.

References DELETED_POSTING.

◆ PostingChanges() [3/3]

Inverter::PostingChanges::PostingChanges ( Xapian::docid  did,
Xapian::termcount  old_wdf,
Xapian::termcount  new_wdf 
)
inline

Constructor for an updated posting.

Definition at line 77 of file glass_inverter.h.

Member Function Documentation

◆ add_posting()

void Inverter::PostingChanges::add_posting ( Xapian::docid  did,
Xapian::termcount  wdf 
)
inline

Add a posting.

Definition at line 85 of file glass_inverter.h.

◆ get_cfdelta()

Xapian::termcount_diff Inverter::PostingChanges::get_cfdelta ( ) const
inline

Get the collection frequency delta.

Definition at line 111 of file glass_inverter.h.

Referenced by GlassPostListTable::merge_changes().

◆ get_tfdelta()

Xapian::termcount_diff Inverter::PostingChanges::get_tfdelta ( ) const
inline

Get the term frequency delta.

Definition at line 108 of file glass_inverter.h.

Referenced by GlassPostListTable::merge_changes().

◆ remove_posting()

void Inverter::PostingChanges::remove_posting ( Xapian::docid  did,
Xapian::termcount  wdf 
)
inline

Remove a posting.

Definition at line 93 of file glass_inverter.h.

References DELETED_POSTING.

◆ update_posting()

void Inverter::PostingChanges::update_posting ( Xapian::docid  did,
Xapian::termcount  old_wdf,
Xapian::termcount  new_wdf 
)
inline

Update a posting.

Definition at line 101 of file glass_inverter.h.

Friends And Related Function Documentation

◆ GlassPostListTable

friend class GlassPostListTable
friend

Definition at line 50 of file glass_inverter.h.

Member Data Documentation

◆ cf_delta

Xapian::termcount_diff Inverter::PostingChanges::cf_delta
private

Change in collection frequency.

Definition at line 56 of file glass_inverter.h.

◆ pl_changes

std::map<Xapian::docid, Xapian::termcount> Inverter::PostingChanges::pl_changes
private

Changes to this term's postlist.

Definition at line 59 of file glass_inverter.h.

Referenced by GlassPostListTable::merge_changes().

◆ tf_delta

Xapian::termcount_diff Inverter::PostingChanges::tf_delta
private

Change in term frequency,.

Definition at line 53 of file glass_inverter.h.


The documentation for this class was generated from the following file: