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

Method to_string

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

Source from the content-addressed store, hash-verified

1343 """
1344
1345 def to_string(self):
1346 unit = short_time_unit(self.type['unit_'])
1347 tz = StdString(self.type['timezone_'])
1348 tz = tz.string_literal() if tz.size != 0 else "no timezone"
1349 if not self.is_valid:
1350 return f"{self._format_type()} of null value [{unit}, {tz}]"
1351 value = self.val['value']
1352 return f"{self._format_type()} of value {value}{unit} [{tz}]"
1353
1354
1355class MonthIntervalScalarPrinter(ScalarPrinter):

Callers

nothing calls this directly

Calls 4

string_literalMethod · 0.95
short_time_unitFunction · 0.85
StdStringClass · 0.85
_format_typeMethod · 0.45

Tested by

no test coverage detected