Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-11047

Support a seek API on the iterator to seek forward to a given key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • feature-backlog
    • feature-backlog
    • forestdb
    • Security Level: Public
    • None
    • Untriaged
    • Unknown
    • June 30 - July 18

    Description

      Requested from Marty:

      It would be nice to have a method on the iterator to seek forward.

      Something like:

      fdb_iterator_seek(fdb_iterator *iterator,
      const void *seek_key,
      size_t start_keylen);

      The semantics would be to efficiently jump ahead on the iterator to the seek_key.
      If the seek_key does not exist, it is the first key that sorts after the seek_key.

      This functionality is useful when I have multiple iterators, and based on the data returned by one iterator I know I want to skip ahead on the other iterator to another key further ahead.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sundar Sundar Sridharan (Inactive)
            chiyoung Chiyoung Seo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty