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

Method getZRemRangeByRankNodes

sorted_set.go:208–214  ·  view source on GitHub ↗
(key string, start int, end int)

Source from the content-addressed store, hash-verified

206}
207
208func (z *SortedSet) getZRemRangeByRankNodes(key string, start int, end int) ([]*SkipListNode, error) {
209 if sortedSet, ok := z.M[key]; ok {
210 return sortedSet.GetByRankRange(start, end, false), nil
211 }
212
213 return []*SkipListNode{}, nil
214}
215
216func (z *SortedSet) ZRank(key string, value []byte) (int, error) {
217 if sortedSet, ok := z.M[key]; ok {

Callers 1

Calls 1

GetByRankRangeMethod · 0.80

Tested by

no test coverage detected