|
|
Cheshire3 Objects: Record Store |
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.
| Function | Parameters | Returns | Description |
|---|---|---|---|
| __init__ | config, parent | ||
| create_record | session, record | id | Create a new record with a new identifier |
| delete_record | session, id | Delete the record with the given identifier | |
| fetch_record | session, id | Record | Return the record with the given identifier |
| fetch_recordMetadata | session, id, type | String | Return metadata of the given type (e.g. wordCount, byteCount) for the record with the given identifier |
| store_record | session, record | record | Store an existing record |
| close | session | Ensure data is commited to disk |