#include <InvFPTermList.hpp>
Inheritance diagram for InvFPTermList:
Public Methods | |
InvFPTermList () | |
InvFPTermList (int did, int len, vector< LocatedTerm > &tls) | |
~InvFPTermList () | |
void | startIteration () |
prepare iteration | |
bool | hasMore () |
has more entries | |
TermInfo * | nextEntry () |
Get a pointer to the next entry (pointer to a local static memory). | |
int | docLength () |
Get the length of this document. | |
int | termCount () |
Get the number of terms in this document. | |
int | docID () |
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. | |
virtual void | deltaDecode () |
virtual void | deltaEncode () |
void | countTerms () |
Change our default sequence of words representation to be bag of words. | |
Protected Attributes | |
DOCID_T | uid |
int | length |
LocatedTerm * | list |
LLTerm * | listcounted |
int | listlen |
int | index |
int * | counts |
InvFPTerm | entry |
vector< int > | loclist |
|
|
|
|
|
|
|
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.
|
|
has more entries
Implements TermInfoList. |
|
Get a pointer to the next entry (pointer to a local static memory).
Implements TermInfoList. |
|
prepare iteration
Implements TermInfoList. |
|
Get the number of terms in this document.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|