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

Method to_string

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

Source from the content-addressed store, hash-verified

1413 """
1414
1415 def to_string(self):
1416 size = self.type['byte_width_']
1417 bufptr = BufferPtr(SharedPtr(self.val['value']).get())
1418 if bufptr.data is None:
1419 return f"{self._format_type()} of size {size}, <unallocated>"
1420 nullness = '' if self.is_valid else 'null with '
1421 return (f"{self._format_type()} of size {size}, "
1422 f"{nullness}value {self._format_buf(bufptr)}")
1423
1424
1425class DictionaryScalarPrinter(ScalarPrinter):

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected