| 64 | } |
| 65 | |
| 66 | bool ParseMetaPathConfig(const std::string& config, |
| 67 | std::vector<meta_path_t>* meta_paths) { |
| 68 | std::vector<std::string> str_meta_paths; |
| 69 | deepx_core::Split(config, ",", &str_meta_paths); |
| 70 | |
| 71 | meta_paths->clear(); |
| 72 | meta_path_t meta_path; |
| 73 | for (const auto& str_meta_path : str_meta_paths) { |
| 74 | if (deepx_core::Split(str_meta_path, ":", &meta_path)) { |
| 75 | meta_paths->emplace_back(meta_path); |
| 76 | } else { |
| 77 | DXERROR("Invalid meta path: %s.", str_meta_path.c_str()); |
| 78 | return false; |
| 79 | } |
| 80 | } |
| 81 | |
| 82 | DXINFO("Loaded meta path size: %zu.", meta_paths->size()); |
| 83 | return !meta_paths->empty(); |
| 84 | } |
| 85 | |
| 86 | class RandomWalkerMain : public MainUtil { |
| 87 | private: |