xapian-core  2.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
HoneyRePositionList Class Reference

A reusable position list in a honey database. More...

#include <honey_positionlist.h>

+ Inheritance diagram for HoneyRePositionList:
+ Collaboration diagram for HoneyRePositionList:

Public Member Functions

 HoneyRePositionList (const HoneyTable &table)
 Constructor. More...
 
void assign_data (std::string &&data)
 Fill list with data, and move the position to the start. More...
 
void read_data (Xapian::docid did, const std::string &term)
 Fill list with data, and move the position to the start. More...
 
- Public Member Functions inherited from HoneyBasePositionList
 HoneyBasePositionList ()
 Default constructor. More...
 
Xapian::termcount get_approx_size () const
 Returns size of position list. More...
 
Xapian::termpos back () const
 Return the final entry in this positionlist. More...
 
Xapian::termpos get_position () const
 Returns current position. More...
 
bool next ()
 Advance to the next term position in the list. More...
 
bool skip_to (Xapian::termpos termpos)
 Advance to the first term position which is at least termpos. More...
 
- Public Member Functions inherited from Xapian::PositionIterator::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...
 
- Public Member Functions inherited from Xapian::Internal::intrusive_base
 intrusive_base ()
 Construct with no references. More...
 

Private Member Functions

 HoneyRePositionList (const HoneyRePositionList &)=delete
 Copying is not allowed. More...
 
HoneyRePositionListoperator= (const HoneyRePositionList &)=delete
 Assignment is not allowed. More...
 

Private Attributes

HoneyCursor cursor
 Cursor for locating multiple entries efficiently. More...
 

Additional Inherited Members

- Public Attributes inherited from Xapian::Internal::intrusive_base
unsigned _refs
 Reference count. More...
 
- Protected Member Functions inherited from HoneyBasePositionList
void set_data (const std::string &data)
 Set positional data and start to decode it. More...
 
- Protected Member Functions inherited from Xapian::PositionIterator::Internal
 Internal ()
 Only constructable as a base class for derived classes. More...
 
- Protected Attributes inherited from HoneyBasePositionList
BitReader rd
 Interpolative decoder. More...
 
Xapian::termpos current_pos
 Current entry. More...
 
Xapian::termpos last
 Last entry. More...
 
Xapian::termcount size
 Number of entries. More...
 
bool have_started
 Have we started iterating yet? More...
 

Detailed Description

A reusable position list in a honey database.

Definition at line 107 of file honey_positionlist.h.

Constructor & Destructor Documentation

◆ HoneyRePositionList() [1/2]

HoneyRePositionList::HoneyRePositionList ( const HoneyRePositionList )
privatedelete

Copying is not allowed.

◆ HoneyRePositionList() [2/2]

HoneyRePositionList::HoneyRePositionList ( const HoneyTable table)
inlineexplicit

Constructor.

Definition at line 120 of file honey_positionlist.h.

Member Function Documentation

◆ assign_data()

void HoneyRePositionList::assign_data ( std::string &&  data)

Fill list with data, and move the position to the start.

Definition at line 191 of file honey_positionlist.cc.

References LOGCALL_VOID.

◆ operator=()

HoneyRePositionList& HoneyRePositionList::operator= ( const HoneyRePositionList )
privatedelete

Assignment is not allowed.

◆ read_data()

void HoneyRePositionList::read_data ( Xapian::docid  did,
const std::string &  term 
)

Fill list with data, and move the position to the start.

Definition at line 204 of file honey_positionlist.cc.

References LOGCALL_VOID, HoneyPositionTable::make_key(), and term.

Referenced by HoneyPosPostList::read_position_list().

Member Data Documentation

◆ cursor

HoneyCursor HoneyRePositionList::cursor
private

Cursor for locating multiple entries efficiently.

Definition at line 109 of file honey_positionlist.h.


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