#include <DocInfoList.hpp>
Inheritance diagram for lemur::api::DocInfo:
Public Member Functions | |
DocInfo () | |
DocInfo (DOCID_T docID, COUNT_T termCount) | |
virtual | ~DocInfo () |
virtual DOCID_T | docID () const |
Doc id. | |
virtual void | docID (DOCID_T id) |
Set doc id. | |
virtual COUNT_T | termCount () const |
Term count in the doc. | |
virtual void | termCount (COUNT_T c) |
Set term count. | |
virtual const LOC_T * | positions () const |
virtual void | positions (const LOC_T *pos) |
Protected Attributes | |
DOCID_T | did |
COUNT_T | tcount |
This is a class that represents the information associated with each doc entry in the term to doc index. The basic information includes the doc ID and the frequency of a term in the document.
|
|
|
|
|
|
|
Set doc id.
|
|
Doc id.
Reimplemented in lemur::index::InvDocInfo. |
|
Set the list of positions Default implementation does nothing |
|
Return list of positions this term occurs in this document Default implementation to return NULL if no position information available for this DocInfo Reimplemented in lemur::index::InvFPDocInfo. |
|
Set term count.
|
|
Term count in the doc.
Reimplemented in lemur::index::InvDocInfo. |
|
|
|
|