| 116 | } |
| 117 | |
| 118 | const std::string SSTableReader::Impl::FindValue( |
| 119 | const std::string &key, |
| 120 | const std::vector<std::pair<std::string, std::string> > &vec) { |
| 121 | std::vector<std::pair<std::string, std::string> >::const_iterator iter = vec.begin(); |
| 122 | for (; iter != vec.end(); ++iter) { |
| 123 | if (iter->first == key) { |
| 124 | return iter->second; |
| 125 | } |
| 126 | } |
| 127 | return ""; |
| 128 | } |
| 129 | |
| 130 | SSTableReader::Impl::Impl() |
| 131 | : buffer_size_(0) { |