-
Notifications
You must be signed in to change notification settings - Fork 1
SmallRecordsDataStore
laforge49 edited this page Oct 10, 2011
·
21 revisions
SmallRecordsDataStore is a collection of records whose keys are strings. Record is a subclass of IncDesIncDes with the addition of a persistent (Long) timestamp, where the timestamp is the timestamp of the last transaction which created the record or updated its content. This timestamp is used to implement opportunistic locking.
SmallRecordsDataStore supports some of the operations which were supported by the SmallDataStore:
- GetRequest returns the content selected by an absolute pathname.
- SizeRequest returns the size of a collection selected by an absolute pathname.
- DbIntSeq, DbLongSeq and DbStringSeq operate over a collection selected by an absolute pathname.
Several new operations are also supported:
- RecordsCount returns the number of records.
- RecordsSeq is a sequence over all the records in the datastore.
- Batch executes a series of actions as a single transaction. There are several actions supported by batch:
- NewRecord creates a record with a given key.
- DeleteRecord deletes a record with the given key.
- RecordUpdate updates the contents of a record with the given key, with a relative pathname used to specify the location of the content.