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

Method BuildLightFileMeta

src/leveldb/db/version_set_test.cc:215–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213 };
214
215 LightFileMeta BuildLightFileMeta(int level, uint64_t file_size, const std::string& row_key,
216 const std::string& cf, const std::string& qu, int64_t ts,
217 TeraKeyType type, const std::string& row_key1,
218 const std::string& cf1, const std::string& qu1, int64_t ts1,
219 TeraKeyType type1) {
220 const leveldb::RawKeyOperator* opt = tera::GetRawKeyOperatorFromSchema(table_schema);
221 std::string begin_key, end_key;
222 opt->EncodeTeraKey(row_key, cf, qu, ts, type, &begin_key);
223 opt->EncodeTeraKey(row_key1, cf1, qu1, ts1, type1, &end_key);
224 InternalKey smallest(begin_key, 1, kTypeValue);
225 InternalKey largest(end_key, 1, kTypeValue);
226 LightFileMeta l;
227 l.level = level;
228 l.file_size = file_size;
229 l.smallest = smallest;
230 l.largest = largest;
231 return l;
232 }
233
234 InternalKey BuildInternalKey(const std::string& row_key, const std::string& cf,
235 const std::string& qu, int64_t ts, TeraKeyType type) {

Callers

nothing calls this directly

Calls 2

EncodeTeraKeyMethod · 0.45

Tested by

no test coverage detected