MCPcopy Create free account
hub / github.com/chen3feng/toft / GetMetaData

Method GetMetaData

storage/sstable/reader/sstable_reader_impl.cpp:152–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150}
151
152const 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
163void SSTableReader::Impl::IterMetaData(
164 toft::Closure<bool(const std::string &, const std::string &)> *callback) {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected