async_get_scanner

异步获取针对某个hashkey下的sortkey区间 [sortkeyA ~ sortkeyB)的一个scanner

  1. ///
  2. /// \brief async get hash scanner
  3. /// get scanner for [start_sortkey, stop_sortkey) of hashkey
  4. /// will not be blocked, return immediately.
  5. /// \param hashkey
  6. /// cannot be empty
  7. /// \param start_sortkey
  8. /// sortkey to start with
  9. /// \param stop_sortkey
  10. /// sortkey to stop. ""(empty string) represents the max key
  11. /// \param options
  12. /// which used to indicate scan options, like which bound is inclusive
  13. /// \param callback
  14. /// return status and scanner in callback, and the latter should be deleted when scan complete
  15. ///
  16. virtual void
  17. async_get_scanner(const std::string &hashkey,
  18. const std::string &start_sortkey, // start from beginning if this set ""
  19. const std::string &stop_sortkey, // to the last item if this set ""
  20. const scan_options &options,
  21. async_get_scanner_callback_t &&callback) = 0;