MCPcopy Create free account
hub / github.com/baidu/tera / key

Method key

src/leveldb/table/table_test.cc:288–296  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286 virtual void Prev() { iter_->Prev(); }
287
288 virtual Slice key() const {
289 assert(Valid());
290 ParsedInternalKey key;
291 if (!ParseInternalKey(iter_->key(), &key)) {
292 status_ = Status::Corruption("malformed internal key");
293 return Slice("corrupted key");
294 }
295 return key.user_key;
296 }
297
298 virtual Slice value() const { return iter_->value(); }
299 virtual Status status() const { return status_.ok() ? iter_->status() : status_; }

Callers 2

ToStringMethod · 0.45
TESTFunction · 0.45

Calls 2

ParseInternalKeyFunction · 0.85
SliceClass · 0.50

Tested by

no test coverage detected