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

Method ExtractMap

be/src/kudu/util/yamlreader.cc:49–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49Status YamlReader::ExtractMap(const Node* node,
50 const string& field,
51 Node* result) {
52 CHECK(result);
53 Node val;
54 RETURN_NOT_OK(ExtractField(node, field, &val));
55 if (PREDICT_FALSE(!val.IsMap())) {
56 return Status::Corruption(Substitute(
57 "wrong type during field extraction: expected map but got $0",
58 TypeToString(val.Type())));
59 }
60 *result = val;
61 return Status::OK();
62}
63
64Status YamlReader::ExtractField(const Node* node,
65 const string& field,

Callers

nothing calls this directly

Calls 5

CorruptionFunction · 0.85
SubstituteFunction · 0.85
OKFunction · 0.85
TypeMethod · 0.80
TypeToStringFunction · 0.70

Tested by

no test coverage detected