Documentation ¶
Index ¶
- type Tuple
- func (tuple *Tuple) AppendVersion(tid uint64, val string)
- func (tuple *Tuple) Free()
- func (tuple *Tuple) KillVersion(tid uint64) uint64
- func (tuple *Tuple) Own(tid uint64) uint64
- func (tuple *Tuple) ReadVersion(tid uint64) (string, bool)
- func (tuple *Tuple) ReadWait(tid uint64)
- func (tuple *Tuple) RemoveVersions(tid uint64)
- func (tuple *Tuple) WriteOpen()
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tuple ¶
type Tuple struct {
// contains filtered or unexported fields
}
@owned Write lock of this tuple. Acquired before committing.
@rcond Condition variable to wake up readers of this tuple.
@tslast Timestamp of the last reader or last writer + 1.
@vers Versions.
func (*Tuple) AppendVersion ¶
Append a new version (@tid, @val) to this tuple.
func (*Tuple) KillVersion ¶
Append a tombstone version of timestamp @tid to this tuple.
func (*Tuple) ReadWait ¶
Call @ReadWait before @ReadVersion. This design allows us to resolve the prophecy at the txn level.
func (*Tuple) RemoveVersions ¶
Remove all versions whose lifetime ends before @tid.
Click to show internal directories.
Click to hide internal directories.