MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / cmp

Method cmp

sorted_set.go:346–350  ·  view source on GitHub ↗
(r1 *core.Record, r2 *core.Record)

Source from the content-addressed store, hash-verified

344}
345
346func (sl *SkipList) cmp(r1 *core.Record, r2 *core.Record) int {
347 val1, _ := sl.db.getValueByRecord(r1)
348 val2, _ := sl.db.getValueByRecord(r2)
349 return bytes.Compare(val1, val2)
350}
351
352func (sl *SkipList) insertNode(score SCORE, hash uint32, record *core.Record) *SkipListNode {
353 var update [SkipListMaxLevel]*SkipListNode

Callers 3

insertNodeMethod · 0.95
deleteMethod · 0.95
FindRankMethod · 0.95

Calls 1

getValueByRecordMethod · 0.80

Tested by

no test coverage detected