|
Public Member Functions |
| CompressedCollection () |
| ~CompressedCollection () |
void | create (const std::string &fileName) |
void | create (const std::string &fileName, const std::vector< std::string > &indexedFields) |
void | create (const std::string &fileName, const std::vector< std::string > &forwardIndexedFields, const std::vector< std::string > &reverseIndexedFields, bool storeDocs=true) |
void | reopen (const std::string &fileName) |
void | open (const std::string &fileName) |
void | openRead (const std::string &fileName) |
void | close () |
bool | exists (lemur::api::DOCID_T documentID) |
indri::api::ParsedDocument * | retrieve (lemur::api::DOCID_T documentID) |
std::string | retrieveMetadatum (lemur::api::DOCID_T documentID, const std::string &attributeName) |
std::vector< indri::api::ParsedDocument * > | retrieveByMetadatum (const std::string &attributeName, const std::string &value) |
std::vector< lemur::api::DOCID_T > | retrieveIDByMetadatum (const std::string &attributeName, const std::string &value) |
void | addDocument (lemur::api::DOCID_T documentID, indri::api::ParsedDocument *document) |
void | compact (indri::index::DeletedDocumentList &deletedList) |
void | append (indri::collection::CompressedCollection &other, indri::index::DeletedDocumentList &deletedList, lemur::api::DOCID_T documentOffset) |
std::vector< std::string > | forwardFields () |
std::vector< std::string > | reverseFields () |
Private Member Functions |
void | _writePositions (indri::api::ParsedDocument *document, int &keyLength, int &valueLength) |
void | _writeMetadataItem (indri::api::ParsedDocument *document, int i, int &keyLength, int &valueLength) |
void | _writeText (indri::api::ParsedDocument *document, int &keyLength, int &valueLength) |
void | _writeContent (indri::api::ParsedDocument *document, int &keyLength, int &valueLength) |
void | _writeContentLength (indri::api::ParsedDocument *document, int &keyLength, int &valueLength) |
void | _readPositions (indri::api::ParsedDocument *document, const void *positionData, int positionDataLength) |
void | _removeForwardLookups (indri::index::DeletedDocumentList &deletedList, lemur::file::Keyfile &keyfile) |
void | _removeReverseLookups (indri::index::DeletedDocumentList &deletedList, lemur::file::Keyfile &keyfile) |
void | _copyForwardLookup (const std::string &name, lemur::file::Keyfile &other, indri::index::DeletedDocumentList &deletedList, lemur::api::DOCID_T documentOffset) |
void | _copyReverseLookup (const std::string &name, lemur::file::Keyfile &other, indri::index::DeletedDocumentList &deletedList, lemur::api::DOCID_T documentOffset) |
void | _copyStorageEntry (indri::file::SequentialReadBuffer *input, indri::file::SequentialWriteBuffer *output, int key, UINT64 position, UINT64 length, lemur::file::Keyfile &lookup) |
void | _copyStorageData (indri::file::SequentialReadBuffer *input, indri::file::SequentialWriteBuffer *output, indri::index::DeletedDocumentList &deletedList, lemur::api::DOCID_T documentOffset, lemur::file::Keyfile &sourceLookup, lemur::file::Keyfile &destLookup, UINT64 storageLength) |
void | _copyForwardLookup (const std::string &name, lemur::file::Keyfile &other, lemur::api::DOCID_T documentOffset) |
Private Attributes |
indri::thread::Mutex | _lock |
std::string | _basePath |
lemur::file::Keyfile | _lookup |
indri::file::File | _storage |
indri::file::SequentialWriteBuffer * | _output |
indri::utility::Buffer | _positionsBuffer |
z_stream_p | _stream |
indri::utility::HashTable<
const char *, lemur::file::Keyfile * > | _reverseLookups |
indri::utility::HashTable<
const char *, lemur::file::Keyfile * > | _forwardLookups |
String_set * | _strings |
bool | _storeDocs |