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

Method DefaultCompactStrategyFactory

src/io/default_compact_strategy.cc:473–482  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473DefaultCompactStrategyFactory::DefaultCompactStrategyFactory(const TableSchema& schema)
474 : schema_(schema),
475 raw_key_operator_(GetRawKeyOperatorFromSchema(schema_)),
476 cmp_(NewRowKeyComparator(raw_key_operator_)) {
477 // build index at tablet io loading
478 for (int32_t i = 0; i < schema_.column_families_size(); ++i) {
479 const std::string& name = schema_.column_families(i).name();
480 cf_indexs_[name] = i;
481 }
482}
483
484DefaultCompactStrategyFactory::~DefaultCompactStrategyFactory() { delete cmp_; }
485

Callers

nothing calls this directly

Calls 2

NewRowKeyComparatorFunction · 0.85

Tested by

no test coverage detected