get_unordered_scanners

获取一个遍历所有数据的scanner

  1. ///
  2. /// \brief get a bundle of scanners to iterate all k-v in table
  3. /// scanners should be deleted when scan complete
  4. /// \param max_split_count
  5. /// the number of scanners returned will always <= max_split_count
  6. /// \param options
  7. /// which used to indicate scan options, like timeout_milliseconds
  8. /// \param scanners
  9. /// out param, used to get k-v
  10. /// these pointers should be deleted
  11. /// \return
  12. /// int, the error indicates whether or not the operation is succeeded.
  13. /// this error can be converted to a string using get_error_string()
  14. ///
  15. virtual int get_unordered_scanners(int max_split_count,
  16. const scan_options &options,
  17. std::vector<pegasus_scanner *> &scanners) = 0;