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

Method Key

be/src/exec/json/json-parser.cc:170–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

168
169template <class Scanner>
170bool JsonParser<Scanner>::Key(const char* str, uint32_t len, bool copy) {
171 if (object_depth_ == 1 && array_depth_ == 0) {
172 DCHECK_EQ(current_field_idx_, -1);
173 string lower_case_key(len, 0);
174 for (uint32_t i = 0; i < len; ++i) {
175 lower_case_key[i] = ascii_tolower(str[i]);
176 }
177 auto iter = field_indexs_.find(lower_case_key);
178 current_field_idx_ = (iter == field_indexs_.end()) ? -1 : iter->second;
179 }
180 return true;
181}
182
183template <class Scanner>
184bool JsonParser<Scanner>::StartObject() {

Callers 4

CompleteWriteMethod · 0.45
AbortWriteMethod · 0.45
SyncFileToDiskMethod · 0.45
DumpMetaCacheMethod · 0.45

Calls 3

ascii_tolowerFunction · 0.85
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected