skl/skl.go
func (s *Skiplist) Get(key []byte) y.ValueStruct {
	n, _ := s.findNear(key, false, true) // findGreaterOrEqual.
	if n == nil {
		return y.ValueStruct{}
	}

	nextKey := s.arena.getKey(n.keyOffset, n.keySize)
	if !y.SameKey(key, nextKey) {
		return y.ValueStruct{}
	}

	valOffset, valSize := n.getValueOffset()
	vs := s.arena.getVal(valOffset, valSize)
	vs.Version = y.ParseTs(nextKey)
	return vs
}
func (s *Skiplist) Get(key []byte) y.ValueStruct {
	n, _ := s.findNear(key, false, true) // findGreaterOrEqual.
	if n == nil {
		return y.ValueStruct{}
	}

	nextKey := s.arena.getKey(n.keyOffset, n.keySize)
	if !y.SameKey(key, nextKey) {
		return y.ValueStruct{}
	}

	valOffset, valSize := n.getValueOffset()
	vs := s.arena.getVal(valOffset, valSize)
	vs.Version = y.ParseTs(nextKey)
	return vs
}
func ( s * Skiplist ) Get ( key [ ] byte ) y . ValueStruct { n , _ := s . findNear ( key , false , true ) // findGreaterOrEqual. if n == nil { return y . ValueStruct { } } nextKey := s . arena . getKey ( n . keyOffset , n . keySize ) if ! y . SameKey ( key , nextKey ) { return y . ValueStruct { } } valOffset , valSize := n . getValueOffset ( ) vs := s . arena . getVal ( valOffset , valSize ) vs . Version = y . ParseTs ( nextKey ) return vs }
// Get gets the value associated with the key. It returns a valid value if it finds equal or earlier
// version of the same key.
Get gets the value associated with the key . It returns a valid value if it finds equal or earlier version of the same key .