xapian-core
1.4.27
|
A position list in a chert database. More...
#include <chert_positionlist.h>
Public Member Functions | |
ChertPositionList () | |
Default constructor. More... | |
ChertPositionList (const ChertTable *table, Xapian::docid did, const string &tname) | |
Construct and initialise with data. More... | |
bool | read_data (const ChertTable *table, Xapian::docid did, const string &tname) |
Fill list with data, and move the position to the start. More... | |
Xapian::termcount | get_approx_size () const |
Returns size of position list. 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 | |
ChertPositionList (const ChertPositionList &) | |
Copying is not allowed. More... | |
void | operator= (const ChertPositionList &) |
Assignment is not allowed. More... | |
Private Attributes | |
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... | |
Additional Inherited Members | |
Public Attributes inherited from Xapian::Internal::intrusive_base | |
unsigned | _refs |
Reference count. More... | |
Protected Member Functions inherited from Xapian::PositionIterator::Internal | |
Internal () | |
Only constructable as a base class for derived classes. More... | |
A position list in a chert database.
Definition at line 78 of file chert_positionlist.h.
|
private |
Copying is not allowed.
|
inline |
Default constructor.
Definition at line 102 of file chert_positionlist.h.
|
inline |
Construct and initialise with data.
Definition at line 105 of file chert_positionlist.h.
|
virtual |
Returns size of position list.
Implements Xapian::PositionIterator::Internal.
Definition at line 142 of file chert_positionlist.cc.
|
virtual |
Returns current position.
Either next() or skip_to() must have been called before this method can be called.
Implements Xapian::PositionIterator::Internal.
Definition at line 149 of file chert_positionlist.cc.
|
virtual |
Advance to the next term position in the list.
Implements Xapian::PositionIterator::Internal.
Definition at line 157 of file chert_positionlist.cc.
|
private |
Assignment is not allowed.
bool ChertPositionList::read_data | ( | const ChertTable * | table, |
Xapian::docid | did, | ||
const string & | tname | ||
) |
Fill list with data, and move the position to the start.
Definition at line 102 of file chert_positionlist.cc.
References ChertTable::get_exact_entry(), LOGCALL, ChertPositionListTable::make_key(), RETURN, and unpack_uint().
Referenced by ChertPostList::read_position_list().
|
virtual |
Advance to the first term position which is at least termpos.
Implements Xapian::PositionIterator::Internal.
Definition at line 172 of file chert_positionlist.cc.
References LOGCALL.
|
private |
Current entry.
Definition at line 83 of file chert_positionlist.h.
|
private |
Have we started iterating yet?
Definition at line 92 of file chert_positionlist.h.
|
private |
Last entry.
Definition at line 86 of file chert_positionlist.h.
|
private |
Interpolative decoder.
Definition at line 80 of file chert_positionlist.h.
|
private |
Number of entries.
Definition at line 89 of file chert_positionlist.h.