| 106 | } |
| 107 | |
| 108 | int CubeAPI::destroy() { |
| 109 | // Meta* meta = Meta::instance(); |
| 110 | if (_meta == NULL) { |
| 111 | LOG(WARNING) << "Destroy, cube meta is null"; |
| 112 | return 0; |
| 113 | } |
| 114 | |
| 115 | int ret = _meta->destroy(); |
| 116 | |
| 117 | if (ret != 0) { |
| 118 | LOG(WARNING) << "Destroy cube meta failed"; |
| 119 | } |
| 120 | |
| 121 | return 0; |
| 122 | } |
| 123 | |
| 124 | int CubeAPI::seek(const std::string& dict_name, |
| 125 | const uint64_t& key, |