MCPcopy Create free account
hub / github.com/apache/impala / Stringify

Function Stringify

be/src/kudu/util/interval_tree-test.cc:163–173  ·  view source on GitHub ↗

Stringify a list of int intervals, for easy test error reporting.

Source from the content-addressed store, hash-verified

161
162// Stringify a list of int intervals, for easy test error reporting.
163static string Stringify(const vector<IntInterval>& intervals) {
164 string ret;
165 bool first = true;
166 for (const IntInterval &interval : intervals) {
167 if (!first) {
168 ret.append(",");
169 }
170 ret.append(interval.ToString());
171 }
172 return ret;
173}
174
175// Find any intervals in 'intervals' which contain 'query_point' by brute force.
176static void FindContainingBruteForce(const vector<IntInterval>& intervals,

Callers 2

Calls 2

appendMethod · 0.45
ToStringMethod · 0.45

Tested by

no test coverage detected