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

Function TypeToString

cpp/src/parquet/types.cc:278–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

276}
277
278std::string TypeToString(Type::type t) {
279 switch (t) {
280 case Type::BOOLEAN:
281 return "BOOLEAN";
282 case Type::INT32:
283 return "INT32";
284 case Type::INT64:
285 return "INT64";
286 case Type::INT96:
287 return "INT96";
288 case Type::FLOAT:
289 return "FLOAT";
290 case Type::DOUBLE:
291 return "DOUBLE";
292 case Type::BYTE_ARRAY:
293 return "BYTE_ARRAY";
294 case Type::FIXED_LEN_BYTE_ARRAY:
295 return "FIXED_LEN_BYTE_ARRAY";
296 case Type::UNDEFINED:
297 default:
298 return "UNKNOWN";
299 }
300}
301
302std::string TypeToString(Type::type t, int type_length) {
303 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