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

Method to_string

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

Source from the content-addressed store, hash-verified

1306 """
1307
1308 def to_string(self):
1309 if not self.is_valid:
1310 return self._format_null()
1311 value = self.val['value']
1312 if self.type_name == "HalfFloatType":
1313 return (f"{self._format_type()} "
1314 f"of value {half_float_value(value)} [{value}]")
1315 if self.type_name in ("UInt8Type", "Int8Type"):
1316 value = value.cast(gdb.lookup_type('int'))
1317 return f"{self._format_type()} of value {value}"
1318
1319
1320class 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