sortkey_count

统计hashkey下面的sortkey个数

  1. ///
  2. /// \brief sortkey_count
  3. /// get sortkey count by hashkey from the cluster.
  4. /// \param hashkey
  5. /// used to decide which partition to get this k-v
  6. /// \param count
  7. /// the returned sortkey count
  8. /// \param timeout_milliseconds
  9. /// if wait longer than this value, will return time out error
  10. /// \return
  11. /// int, the error indicates whether or not the operation is succeeded.
  12. /// this error can be converted to a string using get_error_string().
  13. ///
  14. virtual int sortkey_count(const std::string &hashkey,
  15. int64_t &count,
  16. int timeout_milliseconds = 5000,
  17. internal_info *info = NULL) = 0;