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

Function GetTableKeyRange

src/terautil.cc:967–975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

965}
966
967void GetTableKeyRange(const std::string& table_name, const TabletMetaList& tablet_list,
968 std::vector<std::string>* delimiters) {
969 for (int32_t i = 0; i < tablet_list.meta_size(); i++) {
970 const tera::TabletMeta& meta = tablet_list.meta(i);
971 if (table_name == meta.table_name() && meta.key_range().key_start().size() > 0) {
972 delimiters->push_back(meta.key_range().key_start());
973 }
974 }
975}
976
977int ManualCreateTable(std::shared_ptr<tera::ClientImpl> client, const std::string& table_name,
978 const TableSchema& schema, const std::vector<std::string>& delimiters) {

Callers 2

GetAndSetTableSchemaFunction · 0.85

Calls 2

push_backMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected