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

indri::index::DocExtentListMemoryBuilder Class Reference

#include <DocExtentListMemoryBuilder.hpp>

List of all members.

Public Types

typedef DocExtentListMemoryBuilderIterator iterator

Public Member Functions

size_t _compressedSize (lemur::api::DOCID_T documentID, int begin, int end, INT64 number, int ordinal, int parent)
void _safeAddLocation (lemur::api::DOCID_T documentID, int begin, int end, INT64 number, int ordinal, int parent)
void _growAddLocation (lemur::api::DOCID_T documentID, int begin, int end, INT64 number, int ordinal, int parent, size_t newDataSize)
size_t _roundUp (size_t amount)
void _grow ()
void _terminateDocument ()
 DocExtentListMemoryBuilder (bool numeric, bool ordinal, bool parental)
 ~DocExtentListMemoryBuilder ()
void addLocation (lemur::api::DOCID_T documentID, int begin, int end, INT64 number=0, int ordinal=0, int parent=0)
void clear ()
bool empty ()
int documentFrequency () const
int extentFrequency () const
size_t memorySize () const
void flush ()
iteratorgetIterator ()

Public Attributes

int _documentFrequency
int _extentFrequency
indri::utility::greedy_vector<
DocExtentListMemoryBuilderSegment, 4 > 
_lists
char * _list
char * _listBegin
char * _listEnd
int _lastLocation
lemur::api::DOCID_T _lastDocument
int _lastOrdinal
int _lastExtentFrequency
char * _documentPointer
char * _locationCountPointer
bool _numeric
bool _ordinal
bool _parental


Member Typedef Documentation

typedef DocExtentListMemoryBuilderIterator indri::index::DocExtentListMemoryBuilder::iterator
 


Constructor & Destructor Documentation

indri::index::DocExtentListMemoryBuilder::DocExtentListMemoryBuilder bool  numeric,
bool  ordinal,
bool  parental
 

indri::index::DocExtentListMemoryBuilder::~DocExtentListMemoryBuilder  ) 
 


Member Function Documentation

size_t indri::index::DocExtentListMemoryBuilder::_compressedSize lemur::api::DOCID_T  documentID,
int  begin,
int  end,
INT64  number,
int  ordinal,
int  parent
[inline]
 

void indri::index::DocExtentListMemoryBuilder::_grow  ) 
 

void indri::index::DocExtentListMemoryBuilder::_growAddLocation lemur::api::DOCID_T  documentID,
int  begin,
int  end,
INT64  number,
int  ordinal,
int  parent,
size_t  newDataSize
 

size_t indri::index::DocExtentListMemoryBuilder::_roundUp size_t  amount  ) 
 

void indri::index::DocExtentListMemoryBuilder::_safeAddLocation lemur::api::DOCID_T  documentID,
int  begin,
int  end,
INT64  number,
int  ordinal,
int  parent
[inline]
 

void indri::index::DocExtentListMemoryBuilder::_terminateDocument  ) 
 

void indri::index::DocExtentListMemoryBuilder::addLocation lemur::api::DOCID_T  documentID,
int  begin,
int  end,
INT64  number = 0,
int  ordinal = 0,
int  parent = 0
 

void indri::index::DocExtentListMemoryBuilder::clear  ) 
 

int indri::index::DocExtentListMemoryBuilder::documentFrequency  )  const
 

bool indri::index::DocExtentListMemoryBuilder::empty  ) 
 

int indri::index::DocExtentListMemoryBuilder::extentFrequency  )  const
 

void indri::index::DocExtentListMemoryBuilder::flush  ) 
 

indri::index::DocExtentListMemoryBuilderIterator * indri::index::DocExtentListMemoryBuilder::getIterator  ) 
 

size_t indri::index::DocExtentListMemoryBuilder::memorySize  )  const
 


Member Data Documentation

int indri::index::DocExtentListMemoryBuilder::_documentFrequency
 

char* indri::index::DocExtentListMemoryBuilder::_documentPointer
 

int indri::index::DocExtentListMemoryBuilder::_extentFrequency
 

lemur::api::DOCID_T indri::index::DocExtentListMemoryBuilder::_lastDocument
 

int indri::index::DocExtentListMemoryBuilder::_lastExtentFrequency
 

int indri::index::DocExtentListMemoryBuilder::_lastLocation
 

int indri::index::DocExtentListMemoryBuilder::_lastOrdinal
 

char* indri::index::DocExtentListMemoryBuilder::_list
 

char* indri::index::DocExtentListMemoryBuilder::_listBegin
 

char* indri::index::DocExtentListMemoryBuilder::_listEnd
 

indri::utility::greedy_vector< DocExtentListMemoryBuilderSegment, 4 > indri::index::DocExtentListMemoryBuilder::_lists
 

char* indri::index::DocExtentListMemoryBuilder::_locationCountPointer
 

bool indri::index::DocExtentListMemoryBuilder::_numeric
 

bool indri::index::DocExtentListMemoryBuilder::_ordinal
 

bool indri::index::DocExtentListMemoryBuilder::_parental
 


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