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

Function JoinKeysIterator

be/src/gutil/strings/join.h:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112// Join the keys of a map using the specified delimiter.
113template<typename ITERATOR>
114void JoinKeysIterator(const ITERATOR& start,
115 const ITERATOR& end,
116 const StringPiece& delim,
117 string *result) {
118 result->clear();
119 for (ITERATOR iter = start; iter != end; ++iter) {
120 if (iter == start) {
121 StrAppend(result, iter->first);
122 } else {
123 StrAppend(result, delim, iter->first);
124 }
125 }
126}
127
128template <typename ITERATOR>
129string JoinKeysIterator(const ITERATOR& start,

Callers

nothing calls this directly

Calls 2

StrAppendFunction · 0.85
clearMethod · 0.65

Tested by

no test coverage detected