xapian-core
1.4.27
|
A position list in a glass database. More...
#include <glass_positionlist.h>
Public Member Functions | |
GlassPositionList () | |
Default constructor. More... | |
GlassPositionList (const string &data) | |
Construct and initialise with data. More... | |
GlassPositionList (const GlassTable *table, Xapian::docid did, const string &tname) | |
Construct and initialise with data. More... | |
bool | read_data (const string &data) |
Fill list with data, and move the position to the start. More... | |
bool | read_data (const GlassTable *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 | |
GlassPositionList (const GlassPositionList &) | |
Copying is not allowed. More... | |
void | operator= (const GlassPositionList &) |
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... | |
AutoPtr< GlassCursor > | cursor |
Cursor for locating multiple entries efficiently. 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 glass database.
Definition at line 87 of file glass_positionlist.h.
|
private |
Copying is not allowed.
|
inline |
Default constructor.
Definition at line 114 of file glass_positionlist.h.
|
inlineexplicit |
Construct and initialise with data.
Definition at line 118 of file glass_positionlist.h.
|
inline |
Construct and initialise with data.
Definition at line 123 of file glass_positionlist.h.
|
virtual |
Returns size of position list.
Implements Xapian::PositionIterator::Internal.
Definition at line 150 of file glass_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 157 of file glass_positionlist.cc.
|
virtual |
Advance to the next term position in the list.
Implements Xapian::PositionIterator::Internal.
Definition at line 165 of file glass_positionlist.cc.
|
private |
Assignment is not allowed.
bool GlassPositionList::read_data | ( | const string & | data | ) |
Fill list with data, and move the position to the start.
Definition at line 97 of file glass_positionlist.cc.
References LOGCALL, RETURN, and unpack_uint().
Referenced by GlassDatabase::read_position_list(), and GlassWritableDatabase::read_position_list().
bool GlassPositionList::read_data | ( | const GlassTable * | table, |
Xapian::docid | did, | ||
const string & | tname | ||
) |
Fill list with data, and move the position to the start.
Definition at line 135 of file glass_positionlist.cc.
References GlassTable::cursor_get(), LOGCALL, GlassPositionListTable::make_key(), and RETURN.
|
virtual |
Advance to the first term position which is at least termpos.
Implements Xapian::PositionIterator::Internal.
Definition at line 180 of file glass_positionlist.cc.
References LOGCALL.
|
private |
Current entry.
Definition at line 92 of file glass_positionlist.h.
|
private |
Cursor for locating multiple entries efficiently.
Definition at line 101 of file glass_positionlist.h.
|
private |
Have we started iterating yet?
Definition at line 104 of file glass_positionlist.h.
|
private |
Last entry.
Definition at line 95 of file glass_positionlist.h.
|
private |
Interpolative decoder.
Definition at line 89 of file glass_positionlist.h.
|
private |
Number of entries.
Definition at line 98 of file glass_positionlist.h.