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

Method IterMetaData

storage/sstable/reader/sstable_reader_impl.cpp:163–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void 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
173bool SSTableReader::Impl::LoadDataBlock(int block_id, hfile::DataBlock *block) {
174 CHECK(block_id >= 0 && block_id < data_index_->GetBlockSize())

Callers 1

IterateMetaDataMethod · 0.80

Calls 3

beginMethod · 0.45
endMethod · 0.45
RunMethod · 0.45

Tested by

no test coverage detected