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

Method to_string

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

Source from the content-addressed store, hash-verified

1414 return bufptr.bytes_literal()
1415
1416 def to_string(self):
1417 if not self.is_valid:
1418 return self._format_null()
1419 bufptr = BufferPtr(SharedPtr(self.val['value']).get())
1420 size = bufptr.size
1421 if size is None:
1422 return f"{self._format_type()} of value <unallocated>"
1423 return (f"{self._format_type()} of size {size}, "
1424 f"value {self._format_buf(bufptr)}")
1425
1426
1427class FixedSizeBinaryScalarPrinter(BaseBinaryScalarPrinter):

Callers

nothing calls this directly

Calls 6

_format_bufMethod · 0.95
BufferPtrClass · 0.85
SharedPtrClass · 0.85
_format_nullMethod · 0.80
getMethod · 0.45
_format_typeMethod · 0.45

Tested by

no test coverage detected