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

Method to_string

cpp/gdb_arrow.py:1291–1300  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1289 """
1290
1291 def to_string(self):
1292 if not self.is_valid:
1293 return self._format_null()
1294 value = self.val['value']
1295 if self.type_name == "HalfFloatType":
1296 return (f"{self._format_type()} "
1297 f"of value {half_float_value(value)} [{value}]")
1298 if self.type_name in ("UInt8Type", "Int8Type"):
1299 value = value.cast(gdb.lookup_type('int'))
1300 return f"{self._format_type()} of value {value}"
1301
1302
1303class TimeScalarPrinter(ScalarPrinter):

Callers

nothing calls this directly

Calls 4

half_float_valueFunction · 0.85
_format_nullMethod · 0.80
_format_typeMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected