#include <InvFPTermList.hpp>
Inheritance diagram for InvFPTermList:
Public Methods | |
InvFPTermList () | |
InvFPTermList (DOCID_T did, int len, vector< LocatedTerm > &tls) | |
~InvFPTermList () | |
void | startIteration () const |
prepare iteration | |
bool | hasMore () const |
has more entries | |
TermInfo * | nextEntry () const |
Get a pointer to the next entry (pointer to a local static memory). | |
COUNT_T | docLength () const |
Get the length of this document. | |
COUNT_T | termCount () const |
Get the number of terms in this document. | |
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 (File &infile) |
void | binWriteC (File &outfile) |
virtual void | deltaDecode () |
virtual void | deltaEncode () |
void | countTerms () |
Change our default sequence of words representation to be bag of words. | |
Protected Methods | |
virtual TermInfo * | newElement () const |
create new element of this list type for the iterator | |
virtual TermInfo * | getElement (TermInfo *elem, POS_T position) const |
set element from position, returns pointer to the element | |
virtual void | assignElement (TermInfo *to, TermInfo *from) const |
copy values from one Element (of type InvFPTerm) to another | |
virtual POS_T | beginPosition () const |
position at beginning of list | |
virtual POS_T | endPosition () const |
position at end of list | |
virtual POS_T | nextPosition (POS_T position) const |
advance position | |
Protected Attributes | |
DOCID_T | uid |
COUNT_T | length |
LocatedTerm * | list |
LLTerm * | listcounted |
COUNT_T | listlen |
int | index |
LOC_T * | counts |
InvFPTerm | entry |
vector< LOC_T > | loclist |
|
|
|
|
|
|
|
copy values from one Element (of type InvFPTerm) to another
Reimplemented from TermInfoList. |
|
position at beginning of list
Implements 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 TermInfoList. |
|
set element from position, returns pointer to the element
Implements TermInfoList. |
|
has more entries
Implements TermInfoList. |
|
create new element of this list type for the iterator
Reimplemented from TermInfoList. |
|
Get a pointer to the next entry (pointer to a local static memory).
Implements TermInfoList. |
|
advance position
Implements TermInfoList. |
|
prepare iteration
Implements TermInfoList. |
|
Get the number of terms in this document.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|