MCPcopy Create free account
hub / github.com/apache/kvrocks / GroupSourceToString

Function GroupSourceToString

src/commands/cmd_timeseries.cc:124–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122}
123
124std::string GroupSourceToString(const std::vector<std::string> &sources) {
125 std::string res;
126 size_t total_size = 0;
127 for (auto &src : sources) {
128 total_size += src.size();
129 }
130 res.reserve(total_size + sources.size());
131 for (size_t i = 0; i < sources.size(); i++) {
132 res += sources[i];
133 if (i != sources.size() - 1) {
134 res += ',';
135 }
136 }
137 return res;
138}
139
140std::string FormatCreateRuleResAsRedisReply(TSCreateRuleResult res) {
141 switch (res) {

Callers 1

ExecuteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected