GetByValue returns the node at given key. If node is not found, nil is returned Time complexity : O(1).
(value []byte)
| 769 | // |
| 770 | // Time complexity : O(1). |
| 771 | func (sl *SkipList) GetByValue(value []byte) *SkipListNode { |
| 772 | hash, _ := utils.GetFnv32(value) |
| 773 | return sl.dict[hash] |
| 774 | } |
| 775 | |
| 776 | // FindRank Returns the rank of member in the sorted set stored at key, with the scores ordered from low to high. |
| 777 | // Note that the rank is 1-based integer. Rank 1 means the first node |