|
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 () |
iterator * | getIterator () |
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 |