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

Method Remove

sorted_set.go:542–549  ·  view source on GitHub ↗

Remove removes element specified at given key. Time complexity of this method is : O(log(N)).

(hash uint32)

Source from the content-addressed store, hash-verified

540//
541// Time complexity of this method is : O(log(N)).
542func (sl *SkipList) Remove(hash uint32) *SkipListNode {
543 found := sl.dict[hash]
544 if found != nil {
545 sl.delete(found.score, hash)
546 return found
547 }
548 return nil
549}
550
551// GetByScoreRangeOptions represents the options of the GetByScoreRange function.
552type GetByScoreRangeOptions struct {

Callers 15

PopMinMethod · 0.95
PopMaxMethod · 0.95
removeMergeManifestFunction · 0.45
purgeMergeFilesFunction · 0.45
cleanupOldFilesMethod · 0.45
abortMethod · 0.45
newOutputMethod · 0.45
recoverMergeManifestMethod · 0.45
BenchmarkHintFileWriteFunction · 0.45
mergeLegacyMethod · 0.45

Calls 1

deleteMethod · 0.95

Tested by 10

BenchmarkHintFileWriteFunction · 0.36
TestDataFile_ErrFunction · 0.36
TestDataFile1Function · 0.36
TestDataFile2Function · 0.36
TestDataFile_Crc_ErrFunction · 0.36
TestFileManager1Function · 0.36