Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

indri::index::DiskIndex Class Reference

#include <DiskIndex.hpp>

Inheritance diagram for indri::index::DiskIndex:

indri::index::Index List of all members.

Public Types

enum  { MAX_DOCLENGTHS_CACHE = 20*1024*1024 }

Public Member Functions

 DiskIndex ()
void open (const std::string &base, const std::string &relative)
void close ()
const std::string & path ()
lemur::api::DOCID_T documentBase ()
int field (const char *fieldName)
int field (const std::string &fieldName)
std::string field (int fieldID)
lemur::api::TERMID_T term (const char *term)
lemur::api::TERMID_T term (const std::string &term)
std::string term (lemur::api::TERMID_T termID)
int documentLength (lemur::api::DOCID_T documentID)
UINT64 documentCount ()
UINT64 documentCount (const std::string &term)
lemur::api::DOCID_T documentMaximum ()
 The documentMaximum is at least one greater than the largest documentID used in this index.

UINT64 uniqueTermCount ()
UINT64 termCount (const std::string &term)
UINT64 termCount ()
UINT64 fieldTermCount (const std::string &field)
UINT64 fieldTermCount (const std::string &field, const std::string &term)
UINT64 fieldDocumentCount (const std::string &field)
UINT64 fieldDocumentCount (const std::string &field, const std::string &term)
DocListIteratordocListIterator (lemur::api::TERMID_T termID)
DocListIteratordocListIterator (const std::string &term)
DocListFileIteratordocListFileIterator ()
DocExtentListIteratorfieldListIterator (int fieldID)
DocExtentListIteratorfieldListIterator (const std::string &field)
const TermListtermList (lemur::api::DOCID_T documentID)
TermListFileIteratortermListFileIterator ()
VocabularyIteratorvocabularyIterator ()
VocabularyIteratorfrequentVocabularyIterator ()
VocabularyIteratorinfrequentVocabularyIterator ()
DocumentDataIteratordocumentDataIterator ()
indri::thread::LockableiteratorLock ()
indri::thread::LockablestatisticsLock ()

Private Member Functions

indri::index::DiskTermData_fetchTermData (lemur::api::TERMID_T termID)
indri::index::DiskTermData_fetchTermData (const char *termString)
void _readManifest (const std::string &manifestPath)

Private Attributes

indri::thread::Mutex _lock
std::string _path
indri::file::BulkTreeReader _frequentStringToTerm
indri::file::BulkTreeReader _infrequentStringToTerm
indri::file::BulkTreeReader _frequentIdToTerm
indri::file::BulkTreeReader _infrequentIdToTerm
indri::file::File _frequentTermsData
indri::file::File _documentLengths
indri::file::File _documentStatistics
indri::file::File _invertedFile
indri::file::File _directFile
indri::file::File _fieldsFile
indri::file::SequentialReadBuffer _lengthsBuffer
std::vector< FieldStatistics_fieldData
lemur::api::DOCID_T _documentBase
int _infrequentTermBase
CorpusStatistics _corpusStatistics

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
MAX_DOCLENGTHS_CACHE  Maximum size of the cache for the document lengths file.


Constructor & Destructor Documentation

indri::index::DiskIndex::DiskIndex  )  [inline]
 


Member Function Documentation

indri::index::DiskTermData * indri::index::DiskIndex::_fetchTermData const char *  termString  )  [private]
 

indri::index::DiskTermData * indri::index::DiskIndex::_fetchTermData lemur::api::TERMID_T  termID  )  [private]
 

void indri::index::DiskIndex::_readManifest const std::string &  manifestPath  )  [private]
 

void indri::index::DiskIndex::close  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocListFileIterator * indri::index::DiskIndex::docListFileIterator  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocListIterator * indri::index::DiskIndex::docListIterator const std::string &  term  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocListIterator * indri::index::DiskIndex::docListIterator lemur::api::TERMID_T  termID  )  [virtual]
 

Implements indri::index::Index.

lemur::api::DOCID_T indri::index::DiskIndex::documentBase  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::documentCount const std::string &  term  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::documentCount  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocumentDataIterator * indri::index::DiskIndex::documentDataIterator  )  [virtual]
 

Implements indri::index::Index.

int indri::index::DiskIndex::documentLength lemur::api::DOCID_T  documentID  )  [virtual]
 

Implements indri::index::Index.

lemur::api::DOCID_T indri::index::DiskIndex::documentMaximum  )  [virtual]
 

The documentMaximum is at least one greater than the largest documentID used in this index.

Implements indri::index::Index.

std::string indri::index::DiskIndex::field int  fieldID  )  [virtual]
 

Implements indri::index::Index.

int indri::index::DiskIndex::field const std::string &  fieldName  )  [virtual]
 

Implements indri::index::Index.

int indri::index::DiskIndex::field const char *  fieldName  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::fieldDocumentCount const std::string &  field,
const std::string &  term
[virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::fieldDocumentCount const std::string &  field  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocExtentListIterator * indri::index::DiskIndex::fieldListIterator const std::string &  field  )  [virtual]
 

Implements indri::index::Index.

indri::index::DocExtentListIterator * indri::index::DiskIndex::fieldListIterator int  fieldID  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::fieldTermCount const std::string &  field,
const std::string &  term
[virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::fieldTermCount const std::string &  field  )  [virtual]
 

Implements indri::index::Index.

indri::index::VocabularyIterator * indri::index::DiskIndex::frequentVocabularyIterator  )  [virtual]
 

Implements indri::index::Index.

indri::index::VocabularyIterator * indri::index::DiskIndex::infrequentVocabularyIterator  )  [virtual]
 

Implements indri::index::Index.

indri::thread::Lockable * indri::index::DiskIndex::iteratorLock  )  [virtual]
 

Implements indri::index::Index.

void indri::index::DiskIndex::open const std::string &  base,
const std::string &  relative
 

const std::string & indri::index::DiskIndex::path  ) 
 

indri::thread::Lockable * indri::index::DiskIndex::statisticsLock  )  [virtual]
 

Implements indri::index::Index.

std::string indri::index::DiskIndex::term lemur::api::TERMID_T  termID  )  [virtual]
 

Implements indri::index::Index.

lemur::api::TERMID_T indri::index::DiskIndex::term const std::string &  term  )  [virtual]
 

Implements indri::index::Index.

lemur::api::TERMID_T indri::index::DiskIndex::term const char *  term  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::termCount  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::termCount const std::string &  term  )  [virtual]
 

Implements indri::index::Index.

const indri::index::TermList * indri::index::DiskIndex::termList lemur::api::DOCID_T  documentID  )  [virtual]
 

Implements indri::index::Index.

indri::index::TermListFileIterator * indri::index::DiskIndex::termListFileIterator  )  [virtual]
 

Implements indri::index::Index.

UINT64 indri::index::DiskIndex::uniqueTermCount  )  [virtual]
 

Implements indri::index::Index.

indri::index::VocabularyIterator * indri::index::DiskIndex::vocabularyIterator  )  [virtual]
 

Implements indri::index::Index.


Member Data Documentation

CorpusStatistics indri::index::DiskIndex::_corpusStatistics [private]
 

indri::file::File indri::index::DiskIndex::_directFile [private]
 

lemur::api::DOCID_T indri::index::DiskIndex::_documentBase [private]
 

indri::file::File indri::index::DiskIndex::_documentLengths [private]
 

indri::file::File indri::index::DiskIndex::_documentStatistics [private]
 

std::vector<FieldStatistics> indri::index::DiskIndex::_fieldData [private]
 

indri::file::File indri::index::DiskIndex::_fieldsFile [private]
 

indri::file::BulkTreeReader indri::index::DiskIndex::_frequentIdToTerm [private]
 

indri::file::BulkTreeReader indri::index::DiskIndex::_frequentStringToTerm [private]
 

indri::file::File indri::index::DiskIndex::_frequentTermsData [private]
 

indri::file::BulkTreeReader indri::index::DiskIndex::_infrequentIdToTerm [private]
 

indri::file::BulkTreeReader indri::index::DiskIndex::_infrequentStringToTerm [private]
 

int indri::index::DiskIndex::_infrequentTermBase [private]
 

indri::file::File indri::index::DiskIndex::_invertedFile [private]
 

indri::file::SequentialReadBuffer indri::index::DiskIndex::_lengthsBuffer [private]
 

indri::thread::Mutex indri::index::DiskIndex::_lock [private]
 

std::string indri::index::DiskIndex::_path [private]
 


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 11:03:00 2010 for Lemur by doxygen 1.3.4