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

Function TypeToString

cpp/src/parquet/types.cc:275–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275std::string TypeToString(Type::type t) {
276 switch (t) {
277 case Type::BOOLEAN:
278 return "BOOLEAN";
279 case Type::INT32:
280 return "INT32";
281 case Type::INT64:
282 return "INT64";
283 case Type::INT96:
284 return "INT96";
285 case Type::FLOAT:
286 return "FLOAT";
287 case Type::DOUBLE:
288 return "DOUBLE";
289 case Type::BYTE_ARRAY:
290 return "BYTE_ARRAY";
291 case Type::FIXED_LEN_BYTE_ARRAY:
292 return "FIXED_LEN_BYTE_ARRAY";
293 case Type::UNDEFINED:
294 default:
295 return "UNKNOWN";
296 }
297}
298
299std::string TypeToString(Type::type t, int type_length) {
300 auto s = TypeToString(t);

Callers 15

CheckColumnMethod · 0.85
WriteNullValueMethod · 0.85
FormatDecimalValueFunction · 0.85
MakeColumnStatsFunction · 0.85
PrimitiveNodeMethod · 0.85
ToStringMethod · 0.85
SetDataMethod · 0.85
ValidateMethod · 0.85

Calls 1

to_stringFunction · 0.85