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 
fetch_recordsession, idRecordReturn the record with the given identifier
delete_recordsession, id Delete the record with the given identifier
create_recordsession, recordidCreate a new record with a new identifier
store_recordsession, recordidStore an existing record
get_recordSizesession, idintReturn the 'size' of a record (number of words)
closesession Ensure data is commited to disk