| 150 | } |
| 151 | |
| 152 | const std::string SSTableReader::Impl::GetMetaData(const std::string &key) const { |
| 153 | std::vector<std::pair<std::string, std::string> >::const_iterator iter = file_info_->meta_items |
| 154 | .begin(); |
| 155 | for (; iter != file_info_->meta_items.end(); ++iter) { |
| 156 | if (iter->first == key) { |
| 157 | return iter->second; |
| 158 | } |
| 159 | } |
| 160 | return ""; |
| 161 | } |
| 162 | |
| 163 | void SSTableReader::Impl::IterMetaData( |
| 164 | toft::Closure<bool(const std::string &, const std::string &)> *callback) { |