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

Method BuildInternalKey

src/leveldb/db/version_set_test.cc:234–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232 }
233
234 InternalKey BuildInternalKey(const std::string& row_key, const std::string& cf,
235 const std::string& qu, int64_t ts, TeraKeyType type) {
236 const leveldb::RawKeyOperator* opt = tera::GetRawKeyOperatorFromSchema(table_schema);
237 std::string begin_key;
238 opt->EncodeTeraKey(row_key, cf, qu, ts, type, &begin_key);
239 InternalKey smallest(begin_key, 1, kTypeValue);
240 return smallest;
241 }
242
243 std::string GetInternalKeyStr0(const Slice& user_key, SequenceNumber s, ValueType t) {
244 InternalKey ikey(user_key, s, t);

Callers

nothing calls this directly

Calls 2

EncodeTeraKeyMethod · 0.45

Tested by

no test coverage detected