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

Function JoinMapped

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

Source from the content-addressed store, hash-verified

198// 'components'.
199template<class CONTAINER, typename FUNC>
200string JoinMapped(const CONTAINER& components,
201 const FUNC& functor,
202 const StringPiece& delim) {
203 string result;
204 for (typename CONTAINER::const_iterator iter = components.begin();
205 iter != components.end();
206 iter++) {
207 if (iter != components.begin()) {
208 result.append(delim.data(), delim.size());
209 }
210 result.append(functor(*iter));
211 }
212 return result;
213}
214
215template <class ITERATOR>
216void JoinStringsIterator(const ITERATOR& start,

Callers 6

EnabledMechsStringMethod · 0.85
QueueInboundCallMethod · 0.85
HandleNegotiateMethod · 0.85
IsAddrOneOfFunction · 0.85
QueueInboundCallMethod · 0.85

Calls 5

beginMethod · 0.45
endMethod · 0.45
appendMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected