| 161 | } |
| 162 | |
| 163 | void SSTableReader::Impl::IterMetaData( |
| 164 | toft::Closure<bool(const std::string &, const std::string &)> *callback) { |
| 165 | std::vector<std::pair<std::string, std::string> >::const_iterator iter = file_info_->meta_items |
| 166 | .begin(); |
| 167 | for (; iter != file_info_->meta_items.end(); iter++) { |
| 168 | if (!callback->Run(iter->first, iter->second)) |
| 169 | return; |
| 170 | } |
| 171 | } |
| 172 | |
| 173 | bool SSTableReader::Impl::LoadDataBlock(int block_id, hfile::DataBlock *block) { |
| 174 | CHECK(block_id >= 0 && block_id < data_index_->GetBlockSize()) |
no test coverage detected