#include <InvFPTermList.hpp>
Inheritance diagram for lemur::index::InvFPTermList:
Public Member Functions | |
InvFPTermList () | |
InvFPTermList (lemur::api::DOCID_T did, int len, vector< LocatedTerm > &tls) | |
~InvFPTermList () | |
void | startIteration () const |
prepare iteration | |
bool | hasMore () const |
has more entries | |
lemur::api::TermInfo * | nextEntry () const |
Get a pointer to the next entry (pointer to a local static memory). | |
virtual int | size () |
Gets the number of entries in this list. | |
virtual lemur::api::TermInfo * | operator[] (int index) const |
lemur::api::COUNT_T | docLength () const |
Get the length of this document. | |
lemur::api::COUNT_T | termCount () const |
Get the number of terms in this document. | |
lemur::api::DOCID_T | docID () const |
Get the docid this list is for. | |
bool | binRead (ifstream &infile) |
bool | binReadC (ifstream &infile) |
Read in a compressed TermInfoList object from a file. | |
void | binWriteC (ofstream &ofile) |
Write a compressed TermInfoList object to a file. | |
bool | binReadC (lemur::file::File &infile) |
void | binWriteC (lemur::file::File &outfile) |
virtual void | deltaDecode () |
virtual void | deltaEncode () |
void | countTerms () |
Change our default sequence of words representation to be bag of words. | |
Protected Member Functions | |
virtual lemur::api::TermInfo * | newElement () const |
create new element of this list type for the iterator | |
virtual lemur::api::TermInfo * | getElement (lemur::api::TermInfo *elem, lemur::api::POS_T position) const |
set element from position, returns pointer to the element | |
virtual void | assignElement (lemur::api::TermInfo *to, lemur::api::TermInfo *from) const |
copy values from one Element (of type InvFPTerm) to another | |
virtual lemur::api::POS_T | beginPosition () const |
position at beginning of list | |
virtual lemur::api::POS_T | endPosition () const |
position at end of list | |
virtual lemur::api::POS_T | nextPosition (lemur::api::POS_T position) const |
advance position | |
Protected Attributes | |
lemur::api::DOCID_T | uid |
lemur::api::COUNT_T | length |
LocatedTerm * | list |
LLTerm * | listcounted |
lemur::api::COUNT_T | listlen |
int | index |
lemur::api::LOC_T * | counts |
InvFPTerm | entry |
vector< lemur::api::LOC_T > | loclist |
|
|
|
|
|
|
|
copy values from one Element (of type InvFPTerm) to another
Reimplemented from lemur::api::TermInfoList. |
|
position at beginning of list
Implements lemur::api::TermInfoList. |
|
Read in a TermInfoList object from a file Assumes the following format: DOCID DOCLENGTH UNIQUE_TERM_COUNT [TERM LOC]..[] |
|
|
|
Read in a compressed TermInfoList object from a file.
|
|
|
|
Write a compressed TermInfoList object to a file.
|
|
Change our default sequence of words representation to be bag of words.
|
|
delta decode termids and positions from begin through end call after read |
|
delta encode termids and positions from begin through end call before write |
|
Get the docid this list is for.
|
|
Get the length of this document.
|
|
position at end of list
Implements lemur::api::TermInfoList. |
|
set element from position, returns pointer to the element empty it! Implements lemur::api::TermInfoList. |
|
has more entries
Implements lemur::api::TermInfoList. |
|
create new element of this list type for the iterator
Reimplemented from lemur::api::TermInfoList. |
|
Get a pointer to the next entry (pointer to a local static memory). empty it! Implements lemur::api::TermInfoList. |
|
advance position
Implements lemur::api::TermInfoList. |
|
indexed access to the list. Also sets the iterator to the next item after or to the end if invalid. Implements lemur::api::TermInfoList. |
|
Gets the number of entries in this list.
Implements lemur::api::TermInfoList. |
|
prepare iteration
Implements lemur::api::TermInfoList. |
|
Get the number of terms in this document.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|