Cheshire3 Objects: Record Store

Description

A persistent storage mechanism for Records. It allows such operations as create, update, fetch and delete. It also allows fast retrieval of the record's size for use with computing relevance ranking.

Implementations
API
FunctionParametersReturnsDescription
__init__config, parent 
create_recordsession, recordidCreate a new record with a new identifier
delete_recordsession, id Delete the record with the given identifier
fetch_recordsession, idRecordReturn the record with the given identifier
fetch_recordMetadatasession, id, typeStringReturn metadata of the given type (e.g. wordCount, byteCount) for the record with the given identifier
store_recordsession, recordrecordStore an existing record
closesession Ensure data is commited to disk