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

Method GetInternalKeyStr

src/leveldb/db/version_set_test.cc:248–254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246 }
247
248 std::string GetInternalKeyStr(const Slice& user_key, SequenceNumber s, ValueType t) {
249 std::string key;
250 const leveldb::RawKeyOperator* opt = tera::GetRawKeyOperatorFromSchema(table_schema);
251 opt->EncodeTeraKey(user_key.ToString(), "", "", tera::kLatestTs, TKT_FORSEEK, &key);
252 InternalKey ikey(Slice(key), s, t);
253 return ikey.Encode().ToString();
254 }
255
256 void AddVersionToVersionSet(const std::vector<LightFileMeta>& version_metas) {
257 VersionEdit edit;

Callers

nothing calls this directly

Calls 5

SliceClass · 0.50
EncodeTeraKeyMethod · 0.45
ToStringMethod · 0.45
EncodeMethod · 0.45

Tested by

no test coverage detected