CommitState¶
- class dsviper.CommitState(definitions)¶
Bases:
objectThe data reconstructed at one commit, by replaying the mutations down to it.
Read it through the AttachmentGetting interface. Built by CommitStateBuilder in normal use; the constructor makes an empty one over definitions.
- attachment_getting() AttachmentGetting¶
Return the AttachmentGetting interface.
- cache_hit_rate() float¶
Return the share of reads answered from the cache, between 0 and 1.
- cache_hits() int¶
Return the count of value return from the cache.
- cache_preload() float¶
Read every attachment’s documents into the cache, and return the seconds taken.
Every read is a first read, so the time includes one isolated copy per document, which this call then discards.
- cache_requests() int¶
Return the count of value requested.
- commit_id() ValueCommitId¶
Return the identifier of the commit.
- commit_state_tracing() CommitStateTracing¶
Return the CommitStateTracing interface, which answers a read with the commits that produced the value.
- definitions() DefinitionsConst¶
Return the Definitions every value in this state is typed by.
- eval_actions() list[CommitEvalAction]¶
Return a list of CommitEvalAction.
- traced_opcodes() list[ValueOpcode]¶
Return the list of opcodes from the commit trace.