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

Method FindValue

storage/sstable/reader/sstable_reader_impl.cpp:118–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118const 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
130SSTableReader::Impl::Impl()
131 : buffer_size_(0) {

Callers

nothing calls this directly

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected