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

Method to_string

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

Source from the content-addressed store, hash-verified

1397 return bufptr.bytes_literal()
1398
1399 def to_string(self):
1400 if not self.is_valid:
1401 return self._format_null()
1402 bufptr = BufferPtr(SharedPtr(self.val['value']).get())
1403 size = bufptr.size
1404 if size is None:
1405 return f"{self._format_type()} of value <unallocated>"
1406 return (f"{self._format_type()} of size {size}, "
1407 f"value {self._format_buf(bufptr)}")
1408
1409
1410class 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