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

Function TypeToString

be/src/kudu/util/jsonreader.cc:39–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37
38namespace {
39const char* const TypeToString(rapidjson::Type t) {
40 switch (t) {
41 case rapidjson::kNullType:
42 return "null";
43 case rapidjson::kFalseType:
44 return "false";
45 case rapidjson::kTrueType:
46 return "true";
47 case rapidjson::kObjectType:
48 return "object";
49 case rapidjson::kArrayType:
50 return "array";
51 case rapidjson::kStringType:
52 return "string";
53 case rapidjson::kNumberType:
54 return "number";
55 default:
56 LOG(FATAL) << "unexpected type: " << t;
57 }
58}
59} // anonymous namespace
60
61JsonReader::JsonReader(string text) : text_(std::move(text)) {}

Callers 13

ExtractMapMethod · 0.70
ExtractScalarMethod · 0.70
ExtractArrayMethod · 0.70
ExtractBoolMethod · 0.70
ExtractInt32Method · 0.70
ExtractUint32Method · 0.70
ExtractInt64Method · 0.70
ExtractUint64Method · 0.70
ExtractDoubleMethod · 0.70
ExtractFloatMethod · 0.70
ExtractStringMethod · 0.70
ExtractObjectMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected