| 116 | const std::string& TabletNode::GetId() { return uuid_; } |
| 117 | |
| 118 | uint64_t TabletNode::GetSize(const std::string& table_name) { |
| 119 | MutexLock lock(&mutex_); |
| 120 | if (table_name.empty()) { |
| 121 | return data_size_; |
| 122 | } |
| 123 | uint64_t table_size = 0; |
| 124 | std::map<std::string, uint64_t>::iterator it = table_size_.find(table_name); |
| 125 | if (it != table_size_.end()) { |
| 126 | table_size = it->second; |
| 127 | } |
| 128 | return table_size; |
| 129 | } |
| 130 | |
| 131 | uint64_t TabletNode::GetQps(const std::string& table_name) { |
| 132 | MutexLock lock(&mutex_); |
no test coverage detected