|
xapian-core
2.0.0
|
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... | |
| HoneyRePositionList & | operator= (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... | |
A reusable position list in a honey database.
Definition at line 107 of file honey_positionlist.h.
|
privatedelete |
Copying is not allowed.
|
inlineexplicit |
Constructor.
Definition at line 120 of file honey_positionlist.h.
| 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.
|
privatedelete |
Assignment is not allowed.
| 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().
|
private |
Cursor for locating multiple entries efficiently.
Definition at line 109 of file honey_positionlist.h.