|
xapian-core
2.0.0
|
#include <honey_postlist.h>
Public Member Functions | |
| PostingChunkReader () | |
| Create an uninitialised PostingChunkReader. More... | |
| void | init () |
| Initialise already at_end(). More... | |
| void | init (Xapian::doccount tf, Xapian::termcount cf_info) |
| Initialise. More... | |
| void | assign (const char *p_, size_t len, Xapian::docid did) |
| void | assign (const char *p_, size_t len, Xapian::docid did_, Xapian::docid last_did_in_chunk, Xapian::termcount wdf_) |
| bool | at_end () const |
| Xapian::docid | get_docid () const |
| Xapian::termcount | get_wdf () const |
| bool | next () |
| Advance, returning false if we've run out of data. More... | |
| bool | skip_to (Xapian::docid target) |
| Skip ahead, returning false if we've run out of data. More... | |
Private Attributes | |
| const char * | p = nullptr |
| const char * | end |
| Xapian::docid | did |
| Xapian::termcount | wdf |
| Xapian::docid | last_did |
| The last docid in this chunk. More... | |
| Xapian::doccount | termfreq |
| Xapian::termcount | collfreq_info |
| Value "to do with" collection frequency. More... | |
Definition at line 78 of file honey_postlist.h.
|
inline |
Create an uninitialised PostingChunkReader.
Definition at line 116 of file honey_postlist.h.
| void Honey::PostingChunkReader::assign | ( | const char * | p_, |
| size_t | len, | ||
| Xapian::docid | did | ||
| ) |
Definition at line 300 of file honey_postlist.cc.
References collfreq_info, decode_delta_chunk_header(), decode_delta_chunk_header_no_wdf(), did, end, last_did, p, and wdf.
Referenced by HoneyPostList::HoneyPostList().
| void Honey::PostingChunkReader::assign | ( | const char * | p_, |
| size_t | len, | ||
| Xapian::docid | did_, | ||
| Xapian::docid | last_did_in_chunk, | ||
| Xapian::termcount | wdf_ | ||
| ) |
|
inline |
Definition at line 137 of file honey_postlist.h.
References p.
Referenced by HoneyPostList::next(), and HoneyPostList::skip_to().
|
inline |
Definition at line 139 of file honey_postlist.h.
References did.
Referenced by HoneyPostList::get_docid(), HoneyPostList::get_docid_range(), and HoneyPostList::next().
|
inline |
Definition at line 141 of file honey_postlist.h.
References wdf.
Referenced by HoneyPostList::get_wdf().
|
inline |
Initialise already at_end().
Definition at line 119 of file honey_postlist.h.
Referenced by HoneyPostList::HoneyPostList().
|
inline |
Initialise.
Definition at line 125 of file honey_postlist.h.
References collfreq_info, p, and termfreq.
| bool Honey::PostingChunkReader::next | ( | ) |
Advance, returning false if we've run out of data.
Definition at line 327 of file honey_postlist.cc.
References collfreq_info, did, end, last_did, p, termfreq, TOP_BIT_SET, unpack_uint(), and wdf.
Referenced by HoneyPostList::next().
| bool Honey::PostingChunkReader::skip_to | ( | Xapian::docid | target | ) |
Skip ahead, returning false if we've run out of data.
Definition at line 360 of file honey_postlist.cc.
References AssertEq, collfreq_info, did, end, last_did, p, rare, termfreq, TOP_BIT_SET, unpack_uint(), unpack_uint_backwards(), and wdf.
Referenced by HoneyPostList::skip_to().
|
private |
Value "to do with" collection frequency.
In order to keep this class small in size the meaning of the value of collfreq_info depends on the context (which can be determined from the values of other members):
if wdf is wdf_same for all documents (with the possible exception of the first) then to start with:
collfreq_info = wdf_same | TOP_BIT_SET
and once we've moved onto the second entry:
collfreq_info = 0
Definition at line 112 of file honey_postlist.h.
|
private |
Definition at line 82 of file honey_postlist.h.
Referenced by assign(), get_docid(), next(), and skip_to().
|
private |
Definition at line 80 of file honey_postlist.h.
|
private |
The last docid in this chunk.
Definition at line 87 of file honey_postlist.h.
|
private |
|
private |
Definition at line 89 of file honey_postlist.h.
|
private |