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

Function TrimAndRemoveEmptyString

be/src/service/query-options.cc:197–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197static inline void TrimAndRemoveEmptyString(vector<string>& values) {
198 int i = 0;
199 while (i < values.size()) {
200 trim(values[i]);
201 if (values[i].length() == 0) {
202 values.erase(values.begin() + i);
203 } else {
204 i++;
205 }
206 }
207}
208
209// Returns the TImpalaQueryOptions enum for the given "key". Input is case insensitive.
210// Return -1 if the input is an invalid option.

Callers 1

SetQueryOptionMethod · 0.85

Calls 4

eraseMethod · 0.80
sizeMethod · 0.45
lengthMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected