Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTxnScheduler ¶
Types ¶
type TxnScheduler ¶
type TxnScheduler struct {
// contains filtered or unexported fields
}
TxnScheduler implements the Sort-Based Greedy Algorithm in http://www.vldb.org/pvldb/vol12/p169-ding.pdf
func (*TxnScheduler) ProcessBlk ¶
func (scheduler *TxnScheduler) ProcessBlk(blkHeight uint64) []string
func (*TxnScheduler) ProcessTxn ¶
func (scheduler *TxnScheduler) ProcessTxn(readSets, writeSets []string, snapshot, nextCommittedHeight uint64, txnID string) bool
Click to show internal directories.
Click to hide internal directories.