diff --git a/lib/strokedb/data_structures/simple_skiplist.rb b/lib/strokedb/data_structures/simple_skiplist.rb index 76775fd8..df55ddf7 100644 --- a/lib/strokedb/data_structures/simple_skiplist.rb +++ b/lib/strokedb/data_structures/simple_skiplist.rb @@ -47,7 +47,10 @@ def empty? # then collect all the values. # # 1) Define a direction of search - # + # 2) Find the first node in the range start_key..end_key. + # 3) Skip a given number of nodes (:offset). + # 4) Collect nodes while :end_key prefix matches and :limit + # is not exceeded. # def search(start_key, end_key, limit, offset, reverse, with_keys) offset ||= 0